Initialize a Bolt payment for logged in shoppers
Initialize a Bolt logged-in shopper’s intent to pay for a cart, using the specified payment method. Payments must be finalized before indicating the payment result to the shopper. Some payment methods will finalize automatically after initialization. For these payments, they will transition directly to “finalized” and the response from Initialize Payment will contain a finalized payment.
Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Headers
The publicly shareable identifier used to identify your Bolt merchant division.
A unique identifier for a shopper's device, generated by Bolt. The value is retrieved with Bolt.state.merchantClientId in your frontend context, per-shopper. This header is required for proper attribution of this operation to your analytics reports. Omitting this header may result in incorrect statistics.
Body
- Payment by reference Method
- Payment by Bolt Token Method
- Credit Card Payment Method
- ApplePay Payment Method
- Googlepay Payment Method
- PayPal Payment Method
- Affirm Payment Method
- Afterpay Payment Method
- Klarna Payment Method
- Klarna Account Payment Method
- Klarna Pay Now Payment Method
The type of authorization to perform. 'estimated' for pre-authorization, 'final' for final authorization.
"final"
Whether to automatically capture the payment after authorization. If true, the payment will be captured immediately. If false, the payment will only be authorized and require a separate capture call.
true
Reference value from cardinal.
"b0f0d4d0-4630-4ec8-8f5e-a19234567890"
Optional co-funding contribution from another merchant. Exactly one of funder_public_id or receiver_public_id must be present.
Response
The payment was successfully initialized, and was either immediately finalized or is pending
- Option 1
- Option 2
- Option 3