What's your biggest current challenge? Have your say in Community Polls along the right column.
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

checkoutCompleteWithTokenizedPaymentV3 with stripe order not getting created

checkoutCompleteWithTokenizedPaymentV3 with stripe order not getting created

benspees
Visitor
1 0 0

Hello,

I am using https://shopify.dev/api/examples/checkout#stripe to complete checkout using frontend API.
I have created a stripe connect account and generated a token and passed the token to shopify API but in response i am getting failure message.

Curl code to generate token.

curl --location --request POST 
'https://api.stripe.com/v1/tokens' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {{secret_key}}' \
--header 'Stripe-Account: {{stripe_connect_account_id}}' \
--data-urlencode 'card[name]=test' \
--data-urlencode 'card[number]=4242424242424242' \
--data-urlencode 'card[exp_month]=02' \
--data-urlencode 'card[exp_year]=2025' \
--data-urlencode 'card[cvc]=123'

from shopify i am getting below response in transaction parameter.
"transaction": {
                    "statusV2""FAILURE",
                    "kind""SALE",
                    "amountV2": {
                        "amount""24.9"
                    },
                    "test"false
                }
In admin it says below.
benspees_0-1663658142548.png

 

Can anyone help me out how i can resolve the issue.
Reply 1 (1)

Umiko
Shopify Staff
42 8 14

Hi @benspees 👋

 

In order to look into your specific error, we need the `X-Request-ID` and the time frame. I'd recommend first reviewing the list of requirements for using the `checkoutCompleteWithTokenizedPaymentV3` mutation to rule out any issues with access scopes on your app.

Umiko | API Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog