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 NameField TypeField UsageDescription
1sessionIdStringConditionalSession 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.
2transactionTypeEnumRequiredType of transaction

Valid values:
PURCHASE
CARD_ON_FILE
\ BOTH
3transactionOptionsObject(TransactionOptions)OptionalClient configuration data that can override any configuration created during Merchant onboarding or in the Checkout request. See Transaction Options Data Elements for details.
4transactionValueObject(TransactionValue)ConditionalCurrency code and amount of transaction.

See Transaction Value Data Elements for more information.

Condition: Required if transactionType is PURCHASE or BOTH.
5enhancedTransactionDataObject(EnhancedTransactionData)OptionalMerchant-provided parameters that may impact fraud decisioning. See Enhanced Transaction Data Elements for more information.
6processingNetworkEnumOptionalIf not provided, will default to card network on front of card.

Complete Response Attributes

Field NameField TypeField UsageDescription
completeResponseObject(CompleteResponse)RequiredThis is the JWS of the complete response.

See Complete Response Data Elements for more information.

Complete Promise – Resolve and Reject

FunctionDescription
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 CodeDescription
ACCT_INACCESSIBLEThe 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;
})