I create a Payment ID using the Terminal Checkout API. That works fine.
An error is returned when I use the Payment ID to pay for a created order (using ‘Pay Order’ in the Order API)
“BAD_REQUEST”, “The order does not contain a payment with id”
What is the proper process to accomplish this?
Thank you.
That’s correct, currently with the Terminal API the ability to either pay for an order or create an order that’s paid using the Terminal API isn’t currently available. This is a very popular feature request and we hope to have more options for you soon, so thanks for your continued patience.
post '/create_payment_intent' do
intent = # ... Create or retrieve the PaymentIntent
{client_secret: intent.client_secret}.to_json
end
```function checkout() {
// clientSecret is the client_secret from the PaymentIntent you created in Step 1.
terminal.collectPaymentMethod(clientSecret).then(function(result) {
if (result.error) {
// Placeholder for handling result.error
} else {
// Placeholder for processing result.paymentIntent
}
});
} ```
terminal.processPayment(paymentIntent).then(function(result) {
if (result.error) {
// Placeholder for handling result.error
} else if (result.paymentIntent) {
// Placeholder for notifying your backend to capture result.paymentIntent.id
}
});
[`](https://apktiger.com/dragon-village-mod-apk/)[`](https://apktiger.com/school-of-dragons-mod-apk/)[`](https://apktiger.com/clash-of-clans-mod-apk/)
curl https://api.stripe.com/v1/payment_intents/{{PAYMENT_INTENT_ID}}/capture \
-u sk_test_26PHem9AhJZvU623DfE1x4sd: [\](https://apktiger.com/lords-mobile-mod-apk/)
[-](https://apktiger.com/sonic-dash-mod-apk/)X POST
Currently, the ability to pay for an order using Terminal API isn’t currently available. This is a very popular feature request and we hope to have more options for you soon, so thanks for your continued patience.
We’ve just released Terminal API beta features including order itemization on the Terminal, delayed capture to authorize a payment upfront and collect funds later, card on file for recurring purchases, and app fees so you can monetize on payments processed via Terminal API. Learn more .