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.

Re: Shopify stroefront shopifyPaymentsAccountId

Shopify stroefront shopifyPaymentsAccountId

DanTestStore
Visitor
1 0 0

We have implemented all the flow to use Stripe for payment however we are stuck on how to obtain the shopifyPaymentsAccountId 

Replies 6 (6)

miguelcabgil
Shopify Partner
14 0 8

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!

isamu-asakawa
Shopify Partner
4 0 1

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
        }
    }
}

  

pubron
Excursionist
18 0 4

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?

miguelcabgil
Shopify Partner
14 0 8

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

ariyoshi
Shopify Partner
1 0 0

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.

isamu-asakawa
Shopify Partner
4 0 1

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.