BUG: Access denied calling checkoutCompleteWithCreditCard from android App

Ansam
Visitor
2 0 0

Access denied calling checkoutCompleteWithCreditCard from android App

https://help.shopify.com/en/api/storefront-api/reference/mutation/checkoutcompletewithcreditcardv2

Replies 7 (7)

SBD_
Shopify Staff
1829 269 405

Hey @Ansam,

 

Are you able to provide a request ID from the response headers?

Scott | Developer Advocate @ Shopify 

Ansam
Visitor
2 0 0
Hi @SBD_ 

X-Request-ID : ee86cab3-c68a-40ac-964d-a000673c52a4
 
SBD_
Shopify Staff
1829 269 405

Thanks @Ansam. Looks like a scope issue.

 

More info in the API checkout guide: to complete the checkout using the checkoutcompletewithtokenizedpaymentv2 mutation you need to have the write_checkouts_payments scope enabled for your app. The scope is enabled by requesting payment processing.

Scott | Developer Advocate @ Shopify 

Lucifer2
Tourist
13 0 8

@SBD_ I'm also encountering this issue (CheckoutCompleteWithCreditCard access denied). How can I request the payment processing?

SBD_
Shopify Staff
1829 269 405
Lucifer2
Tourist
13 0 8

@SBD_ oh I see that's a lot of work to do on our side... is there any shopify staff who can configure this for us?

Saminath_Krisna
Tourist
4 0 1

I got permission for payment processing by filling out this form https://docs.google.com/forms/d/e/1FAIpQLSfaiwWJwTsMKKi6Sl-qfiLMwKRKyZ9TxBuutumkk6ThisFTUg/viewform. I'm still getting the “CheckoutCompleteWithCreditCardV2 access denied” error when I try to make a GraphQL query using mobileBuySDK. Our app is a sales channel and has access to Checkout API.Screenshot 2020-07-09 at 1.00.51 PM.png

I'm using the card Vault https://github.com/Shopify/mobile-buy-sdk-ios/#card-vaulting- for generating the token and followed this process https://github.com/Shopify/mobile-buy-sdk-ios/#credit-card-checkout- to checkout using credit card. This is where I get the “CheckoutCompleteWithCreditCardV2 access denied” error. Can you let me know why this may be happening? or how can we make sure that write_checkouts_payments scope is enabled for our app ?
Any help would be appreciated. Thanks.