Introduction
Agreement
Authentication
Batch
Browser Payment
Gateway
Hosted Checkout
Payment Plan
Session
Standalone Risk Assessment
Tokenization
Transaction
Wallet
RESOURCES
Changelog
Click to Pay
onComplete
onComplete Callback
Triggered when the payer has completed the Click to Pay interaction.
Usage
Provides the details of the card selected by the payer. Use these details to complete the payment.
Example
onComplete(correlationId, scheme, cardNumberLastFour, cardArtUri) { console.log('Retrieved correlation id %s for scheme %s with last four of card number %s and the card art URI %s', correlationId, scheme, cardNumberLastFour, cardArtUri) }
Arguments
correlationId
String
Unique identifier for the Click to Pay interaction (for this scheme).
scheme
String
The card scheme for the card.
cardNumberLastFour
String
The last four digits of the card.
cardArtUri
String
Card art URL for the card selected by the payer.
Return Value
None