Default: c2pReviewAction.pay
Controls final Button caption
consumer clicks to make the payment
onButtonLoaded
Function
No
A callback function to be called when
Click-To-Pay button is loaded.
Accepts an object of type
CPButtonLoadedResult
Please click here for the sample code
onPaymentPrefill
Function
Yes
A callback function that returns the
final price and tax calculations.
Please click here for the sample code
onPaymentValidate
Function
No
A callback function to be called
before Payment is made.
Usually used to make custom
validations before the payment.
Please click here for the sample code
onPaymentSuccess
Function
Yes
A callback function to be called when
Click-To-Pay Payment is authorized
for the completion of the transaction.
This function accepts a parameter of
ClickToPayResponse.
Please click here for the sample code
onPaymentCancel
Function
No
A callback function to be called when
user cancels.
Please click here for the sample code
onPaymentError
Function
No
A callback function to be called when
payment errors out.
Please click here for the sample code