Skip to main content
POST
Submit a payment

Headers

x-sign-verified-mid
string

Body

application/json
sessionId
string
required

Payment session id returned by the session create api.

Minimum string length: 1
confirmToken
string
required

Confirm token returned at the top level of session/info. Send it back unchanged.

Minimum string length: 1
payMethodName
string

Pay method name chosen by the user. Required for wallets (APPLEPAY / GOOGLEPAY) and other non-card methods. Optional for cards: the actual card pay method (e.g. CC_VISA or DC_VISA) is resolved by the server from the card BIN.

tokenRequestId
string

Token request id returned by the card Element after the card is submitted. Waffo looks up the card token by it. Set it only for a newly entered card; mutually exclusive with userPaymentAccessToken and paymentTokenData.

Maximum string length: 64
userPaymentAccessToken
string

Waffo card token of an already saved card. Set it only when paying with a saved card; mutually exclusive with tokenRequestId and paymentTokenData.

Maximum string length: 256
paymentTokenData
string

Encrypted payment token returned by Apple Pay / Google Pay after user authorization. Set it only for wallet payments; mutually exclusive with tokenRequestId and userPaymentAccessToken.

Maximum string length: 8192
userFields
object

Values collected by the SDK for the requiredFields list. Key is the field path identical to the order create request body, e.g. userInfo.userEmail.

Response

200 - */*

OK

response data

code
string
Example:

0

msg
string
Example:

"success"

data
object