Introduction to CopyandPay Options and API

Follow

COPYandPAY version 4 introduces 2 JavaScript variables cnp_Options and cnp_Api for modifying the behavior of COPYandPAY.

These new functionalities provide more control over the look, feel, and behavior of COPYandPAY.

Also, the options that these two variables offer are now the only way to change COPYandPAY's behavior. All other functions of the library are now considered internal and we've made them invisible to users.

The advantage of this approach is one the one hand that the options below are very visible, easily accessible and understandable extension points to adapt COPYandPAY's behavior. On the other hand this approach also makes it impossible to inadvertently break existing behavior by overwriting functions that were supposed to be internal (and as such subjects to change).

Please refer to the following articles for further details:

CopyandPay Options: http://support.peachpayments.com/hc/en-us/articles/203404616-CopyandPay-Options-cnp-Options-

CopyandPay API: http://support.peachpayments.com/hc/en-us/articles/203404636-CopyandPay-API-cnp-API-

CopyandPay UseCases: http://support.peachpayments.com/hc/en-us/articles/203404646-CopyandPay-Use-Cases

 

If you find the API-option and Use case you need missing, please contact us on support@peachpayments.com

Have more questions? Submit a request

Comments

Powered by Zendesk