Getting error "CheckoutCompleteWithCreditCardV2 access denied"

Highlighted
Shopify Partner
23 0 0

Hello,

 

I am using Storefront API for my react-native app. I am getting error "CheckoutCompleteWithCreditCardV2 access denied" when I completing the payment. 

 

Here is the query that I have used to completing the payment : 

 

const query = `
            mutation {
                checkoutCompleteWithCreditCardV2(checkoutId: "${checkoutId}", payment:{
                    paymentAmount:{
                        amount: "${amount}"
                        currencyCode: USD
                    }
                    idempotencyKey: "${idempotencyKey}"
                    billingAddress:{
                        address1: "${billingAddress.address1}"
                        address2: "${billingAddress.address2}"
                        city: "${billingAddress.city}"
                        company: "${billingAddress.company}"
                        country: "${billingAddress.country}"
                        firstName: "${billingAddress.firstName}"
                        lastName: "${billingAddress.lastName}"
                        phone: "${billingAddress.phone}"
                        province: "${billingAddress.province}"
                        zip: "${billingAddress.zip}"
                    }
                    vaultId: "${vaultId}"
                    test: true
                }) {
                    checkout{
                        id
                        totalPriceV2{
                          amount
                        }
                    }
                    checkoutUserErrors{
                      message
                      code
                    }
                    payment{
                      amountV2{
                        amount
                      }
                    }
                }
            }
        `;
        
        console.log(query);
        const res = await axios.post(Api.url, query, {headers: Api.header});
        console.log(res);

How can I solve this error ?

0 Likes
Highlighted
Shopify Partner
23 0 0

@Aria mam, please help !!

 

Here is my store detail : 

 

Storename : proj-jules-james

0 Likes
Highlighted
New Member
4 0 0

did you solved it?

0 Likes