Checkout
Checkout
Invoking Checkout causes consumers to enter the PazeSM user interface (UI) via popup.
- The SDK will render the following screens:
- Consumer authentication
- Card selection
- Shipping address selection or entry (if configured in the Checkout request)
- The response of Checkout will contain masked card, consumer, and billing & shipping address, per the corresponding Checkout API request.
Checkout Request Parameters
Seq. # |
|
| Field Usage | Description |
---|---|---|---|---|
1 | emailAddress | String | Optional | Email address as consumer identity. |
2 | sessionId | String | Optional | Session reference identifier generated by the Merchant. If present here, it will be returned in the Checkout response. (Maximum length 255 characters) |
3 | actionCode | Enum | Optional | Valid values: |
4 | intent | Enum | Optional | Valid values: |
5 | transactionValue | Object(TransactionValue) | Conditional | Currency code and amount of transaction. |
7 | shippingPreference | Enum | Optional | Whether Merchant wants to have shipping address collected. |
8 | billingPreference | Enum | Optional | Verbosity of billing address required by the Merchant. |
9 | cobrand | List(Cobrand) | Optional | Details for cobranded cards offered by the Merchant. If the Merchant has multiple cobranded cards, the list should be ordered from highest to lowest display priority. |
10 | acceptedShippingCountries | List | Optional | Array of country codes in ISO 3166-1 alpha-2 format as Shipping restrictions. |
11 | acceptedPaymentCardNetworks | List | Optional | An array of payment card networks. |
Checkout Response Attributes
Field Type | Field Status | Description |
---|---|---|
1 | result | Enum |
2 | checkoutResponse | Object(CheckoutResponse) |
Checkout Promise – Resolve and Reject
Function | Description |
---|---|
resolve() | This is the JS Promise (fulfilled) call when the request is successfully processed by the PazeSM SDK. |
Reject() | This is the JS Promise call when there is an error. The object passed in is an error. |
Checkout Business Errors
Reason Code | Description |
---|---|
ACCT_INACCESSIBLE | The wallet exists but is not currently accessible (e.g., is suspended) or User Not Found. |
CLIENT_DATA_INVALID | Invalid client data. |
shippingPreference ALL will be conditionally invalid if intent is ADD_CARD. |
Checkout Code Examples
// Response dictionary {
required String result;
conditional JWS<CheckoutResponse> checkoutResponse;
}
checkout({
optional String emailAddress;
optional String sessionId;
optional Enum actionCode;
optional Enum intent;
conditional TransactionValue transactionValue;
optional Enum shippingPreference;
optional Enum billingPreference;
optional List<Cobrand> cobrand;
optional List<String> acceptedShippingCountries;
optional List<String> acceptedPaymentCardNetworks;
})
Updated 2 days ago