Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
We have implemented all the flow to use Stripe for payment however we are stuck on how to obtain the shopifyPaymentsAccountId
Hey Dan. I hope this helps.
This is the query you can use to get the shopifyPaymentsAccountId:
shop {
id
name
paymentSettings {
shopifyPaymentsAccountId
}
}
Remember, you must query to shopify storefront api (graphql). Also you need the next shopify scope:
unauthenticated_read_product_listings
May God bless you, cheers!
Hi
I tried to get shopifyPaymentsAccountId and send query using storefront:2022-07. But the return is always null from both front and backend.
- "unauthenticated_read_product_listings" is added.
- Shopify Payment is activated
what do you think?
query
{
shop{
paymentSettings{
shopifyPaymentsAccountId
}
}
}
{
"shop": {
"paymentSettings": {
"shopifyPaymentsAccountId": null
}
}
}
I am having the same problem.
Please refer to this.
https://community.shopify.com/c/storefront-api-and-sdks/documentation-on-checkoutcompletewithtokeniz...
Perhaps,
- Cannot be get ShopifyPaymentsAccountId with custom apps. (force returned null)
- Must be a Sales channel apps
- Need to request "Payment processing"
I just have requested Payment processing.
It seems to take a while to review.
So, I'm not known if ShopifyPaymentsAccountId will be really enabled.
Does anyone know if this is what I am thinking?
Indeed you must be a Sales Channel and have the Payment Processing enabled. In case you meet these requirements:
- Are you using a testing store? If yes, you should check if you have bogus active (testing payment processing). If you enabled bogus after installing the app, try uninstalling and then reinstalling the store.
- Are you using production store? Check if your store can process payments. If indeed it processes payments, you should reach out support to dig into it
Sorry for interrupting.
I have a further question about ShopifyPaymentsAccountId.
I am developing the following
- Developing a custom storefront using the storefront api
- Implement the custom storefront as a custom app from shopify admin
- Currently implementing in test mode with shopify payment in test store
I am currently facing the following problem.
- I want to implement shopify payment for payment, but shopifyPaymentsAccountId always returns null, so I can't issue cart token.
- I heard that to use checkoutCompleteWithTokenizedPaymentV3 mutation, I need to set my app as sales channel, but I don't know how to set my custom app as sales channel.
I can't solve this problem no matter how many times I read the documentation.
I would appreciate it if you could reply to me.
Hi Ariyoshi
Firestly you have to create public app in Shopify partner admin to set up an app as sales channel.
And request sales channel right.
if you still need to use shopifyPaymentsAccountId, additionaly, you can request payment processing.
FYI
I have requested it but I was recommended to use Cart Permalinks or Shopify's Marketplace Kit.
You will be needed to explain why payment processing is needed and what you do in your app.