On This Page
pilot
checkout()
This method performs checkout using the specified Digital Card or PAN. If successful, the
response contains summary checkout information and, conditionally, an encrypted payload
signed by the SRC System containing PCI and/or PII data.
This method is called after the consumer has chosen a card for checkout from the card
list or when the consumer enrolls a new card.
To add a card, the partner or merchant should provide the encrypted Card object, instead
of ID of the digital card identifier, as an input parameter. The card will be enrolled
into the SRC system and used for checkout.
JavaScript Example
//sample checkoutParameters const checkoutParameters = { srcDigitalCardId: 'nE5xhI3jQcSis6Vf7IAH-A000000000000US', dpaTransactionOptions: { dpaBillingPreference: 'POSTAL_COUNTRY', dpaAcceptedBillingCountries: ['US', 'CA'], consumerNationalIdentifierRequested: false, merchantCategoryCode: '4829', merchantCountryCode: 'US', merchantOrderId: '8e15ce5c-58a3-4748-acab-71c67432dfa7', paymentOptions: [ { dpaDynamicDataTtlMinutes: 2, dynamicDataType: 'CARD_APPLICATION_CRYPTOGRAM_LONG_FORM' } ] }, payloadTypeIndicatorCheckout: 'FULL' }; // Call checkout const checkoutResponse = await vsdk.checkout(checkoutParameters); // Log the checkout response console.log(checkoutResponse);
Syntax
Your
checkout()
request must have this syntax:checkout({ conditional String srcDigitalCardId; conditional JWE<Card> encryptedCard; optional Consumer consumer; optional DpaTransactionOptions dpaTransactionOptions; optional PayloadTypeIndicator payloadTypeIndicatorCheckout; conditional Window windowRef; conditional ComplianceSettings complianceSettings; optional AssuranceData assuranceData; })