Create payment
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Headers
Request
Polymorphic object that contains payment details.
The value of the type parameter determines which variant you should use:
card- Payment card detailssecureToken- Secure token detailsdigitalWallet- Digital wallet detailssingleUseToken- Single-use token details
Polymorphic object that contains authentication information from 3-D Secure.
The value of the serviceProvider parameter determines which variant you should use:
gateway- Use our gateway to run a 3-D Secure check.thirdParty- Use a third party to run a 3-D Secure check.
Object that contains information about saving the customer’s payment details.
Indicates if we should automatically capture the payment amount.
true- Run a sale and automatically capture the transaction.false- Run a pre-authorization and capture the transaction later.
Note: If you send false and the terminal doesn’t support pre-authorization, we set the transaction’s status to pending. The merchant must capture the transaction to take payment from the customer.
Indicates if we should immediately settle the sale transaction. The merchant cannot adjust the transaction if we immediately settle it.
Note: If the value for processAsSale is true, the gateway ignores the value in autoCapture.
Response headers
Response
Array of operations that you can perform on the transaction.
capture- Capture the payment.refund- Refund the payment.fullyReverse- Fully reverse the transaction.partiallyReverse- Partially reverse the payment.incrementAuthorization- Increase the amount of the authorization.adjustTip- Adjust the tip post-payment.addSignature- Add a signature to the payment.setAsReady- Set the transaction’s status toready.setAsPending- Set the transaction’s status topending.