Complete
Complete
This API closes the Merchant and consumer sessions (where applicable) and provides a payment identifier and, if requested, the card details required to successfully process the Payment Transaction. Card networks handle card-on-file functionality in different ways. Refer to individual card guides for clarification and the most up-to-date guidance.
Complete Request Parameters
Seq. # | Field Name | Field Type | Field Usage | Description |
---|---|---|---|---|
1 | sessionId | String | Conditional | Session reference identifier generated by the Merchant. If present here, it will be returned and can be used to tie session info to payloadId. (Maximum length 255 characters) Condition: Required if transactionType is PURCHASE or BOTH. |
2 | transactionType | Enum | Required | Type of transaction Valid values: PURCHASE CARD_ON_FILE \ BOTH |
3 | transactionOptions | Object(TransactionOptions) | Optional | Client configuration data that can override any configuration created during Merchant onboarding or in the Checkout request. See Transaction Options Data Elements for details. |
4 | transactionValue | Object(TransactionValue) | Conditional | Currency code and amount of transaction. See Transaction Value Data Elements for more information. Condition: Required if transactionType is PURCHASE or BOTH. |
5 | enhancedTransactionData | Object(EnhancedTransactionData) | Optional | Merchant-provided parameters that may impact fraud decisioning. See Enhanced Transaction Data Elements for more information. |
6 | processingNetwork | Enum | Optional | If not provided, will default to card network on front of card. |
Complete Response Attributes
Field Name | Field Type | Field Usage | Description |
---|---|---|---|
completeResponse | Object(CompleteResponse) | Required | This is the JWS of the complete response. See Complete Response Data Elements for more information. |
Complete Promise – Resolve and Reject
Function | Description |
---|---|
resolve() | This is the JS Promise (fulfilled) call when the request is successfully processed by the PazeSM SDK. A JSON object with the JWS(completeResponse) value will be passed. |
Reject() | This is the JS Promise call when there is an error. The object passed in is an error. |
Complete Business Errors
Reason Code | Description |
---|---|
ACCT_INACCESSIBLE | The wallet account exists but is not currently accessible (e.g., is suspended). |
Complete Code Examples
// Response dictionary { }
complete({
conditional String sessionId;
required Enum transactionType;
optional TransactionOptions transactionOptions;
conditional TransactionValue transactionValue;
optional EnhancedTransactionData enhancedTransactionData;
optional Enum processingNetwork;
required JWS<completeResponse> completeResponse;
})
Updated about 1 month ago