Headless commerce and custom storefronts with Shopify APIs and SDKs
Hi !
I have received an email saying my Custom Storefront Payment Processing Request had been approved.
However when I Iook at my access scopes, the `write_checkouts_payments` is still not there.
{
scopes: [
{ handle: 'read_analytics' },
{ handle: 'write_customers' },
{ handle: 'write_discounts' },
{ handle: 'read_inventory' },
{ handle: 'read_locations' },
{ handle: 'write_products' },
{ handle: 'unauthenticated_read_product_listings' },
{ handle: 'unauthenticated_read_product_tags' },
{ handle: 'unauthenticated_read_product_inventory' },
{ handle: 'unauthenticated_write_customers' },
{ handle: 'unauthenticated_write_checkouts' },
{ handle: 'unauthenticated_read_content' },
{ handle: 'read_customers' },
{ handle: 'read_discounts' },
{ handle: 'read_products' },
{ handle: 'unauthenticated_read_customers' },
{ handle: 'unauthenticated_read_checkouts' }
]
}
Is there something I need to do in order to get it enabled?
Thanks in advance!
Jérémy
Hi Jeremy -
I processed your request for the mobile app. Looks like two different API keys were submitted, but the form grouped by email, and assumed this was a duplicate. I've enabled the scope for the other API key. Give that a try and send me a DM if any issues.
Hi Vix,
Thanks for your help.
However I still see the same list of scopes when I request them, and using the `checkoutCompleteWithTokenizedPaymentV3` mutation still doesn't seem to create the order in the admin.
Am I missing something here ?
Thanks in advance for your help,
Jérémy
Thanks Vix,
A request id (gotten from the response) is `7b8d0ac4-7ad4-4dd9-95e5-5d2d070bbfa6`
The `checkoutUserErrors` field is an empty array.
I am performing the following steps:
mutation checkoutCreate($input: CheckoutCreateInput!)
2 .Get the first available shipping rate as default and update the checkout shipping line
mutation checkoutShippingLineUpdate(
$checkoutId: ID!
$shippingRateHandle: String!
)
3.Customer adds card using the Stripe tokens endpoint and clicks on "Pay"
4.I call the complete checkout with tokenized mutation using the token gotten in 3) as "paymentData" and SHOPIFY_PAY as "type"
mutation checkoutCompleteWithTokenizedPaymentV3(
$checkoutId: ID!
$payment: TokenizedPaymentInputV3!
)
I get the following JSON, which suggests everything went well - but the order doesn't appear in the admin
"checkoutCompleteWithTokenizedPaymentV3": Object {
"__typename": "CheckoutCompleteWithTokenizedPaymentV3Payload",
"checkout": Object {
"__typename": "Checkout",
"id": "Z2lkOi8vc2hvcGlmeS9DaGVja291dC83ZTRhZGFhYmU4MzdhMTlmNmEwNTFiODA3OGY3YTIwOT9rZXk9N2RmMGFlMWYyZTdlYzYzYjM1OGQxNTExZTg3ODc3YmY=",
"ready": true,
},
"checkoutUserErrors": Array [],
"payment": Object {
"__typename": "Payment",
"errorMessage": null,
"id": "Z2lkOi8vc2hvcGlmeS9QYXltZW50LzIxODA3NjU5MDkxODA/Y2hlY2tvdXQ9N2U0YWRhYWJlODM3YTE5ZjZhMDUxYjgwNzhmN2EyMDkma2V5PTdkZjBhZTFmMmU3ZWM2M2IzNThkMTUxMWU4Nzg3N2Jm",
"nextActionUrl": null,
"ready": false,
},
},
Am I missing something here?
Thanks a lot for your help !
Regards,
Jérémy
Thanks Jérémy!
Are you intending to utilize Stripe as the provider? If so, there are some tweaks to be made.
Hi Vix !
Thanks for your help. We're getting to the bottom of this 😄🙂
Here's the Stripe Account ID I can find in the docs:
acct_1I9sUNKyB4S7yNuv
(This is for my sandbox, hopefully you can share a way for me to communicate the value for the production account more securely? ;))
Let me know if that's what you were looking for - awaiting your answer 🙂
Have a good day,
Jérémy
Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023One of the key components to running a successful online business is having clear and co...
By Ollie Mar 6, 2023