Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
Hi there, we are trying to build an application to create shopify orders and are running into an issue trying to hit the payments.json endpoint. I came across this thread that talks about a permission setting that apparently only a Shopify employee can change (Dima Bart was very helpful for a lot of users on that thread). Could someone please enable us to make payments for our app on the itsallgravy.shopify.com store?
Let us know if you have any questions.
Thanks,
Tommy and the Sureshot Team
Hey Tommy,
You should be all set to use the endpoint now. Let me know if you run into trouble.
To learn more visit the Shopify Help Center or the Community Blog.
Hi Zameer, thank you but now we are getting a 404 response when POSTing to the payments.json endpoint for a checkout. Can you confirm if we should be using public app key/token for checkout api calls or should we be using the private app key. Here is an example of a checkout endpoint that I'm attempting to hit: https://itsallgravy.myshopify.com/admin/checkouts/5f6785e0a30f588d5f1e11f587e2a521/payments.json
Please let us know if you need anything else from us to help.
Thanks
The permission was applied to your private app titled 'SureShot'.
Do you instead need it for another app? If so, what's the API key associated with the app?
Edit: Private apps no longer have access to write checkouts. Public apps can request payment processing access through their Partner's Dashboard
To learn more visit the Shopify Help Center or the Community Blog.
Hi Zameer, sorry was writing this up before you replied but I did find out using Postman that we are receiving a response when hitting the payments.json endpoint, however it appears to be trying to redirect the user for some reason (and I suppose the final destination is what isn't available, giving me the 404). Btw, we are hitting the api endpoint's from a service and I have populated the useragent/referer/acceptlanguage headers for our requests to get around other issues I ran into but it appears to want to have the user "login" to the shopify website or something because the response headers have one for X-Shopify-Login-Required that is set to true? Do you have a suggestion to get around this issue? Because of other comments I've read I went ahead and tried adding the user and key as part the url to make a payment similar to this (user/pass changed) https://user:pass@itsallgravy.myshopify.com/admin/checkouts/3910adca7edfec2261cbc922a9a90e10/payments.json
but still get the same response trying to do a redirect with html and javascript for whatever reason. I am also passing the oauth token as the X-Shopify-Access-Token header in every checkout request as well fyi.
I don't know but we setup a public app as well I believe that is installed on the gravy store
Let us know when you get a chance please.
Thank You
Hi Zameer, I don't have the public key handy at the moment but I think you should be able to see a public Sureshot app installed on the itsallgravy store. Could you please give these permissions to that app?
Let me know if you need anything from me.
Thanks
For public apps like Sureshot-Labs, the requests for payment processing are made via the App Setup page in your Partners Dashboard.
I see that a request has already been submitted, so you should be hearing back in roughly 7 business days about your approval.
To learn more visit the Shopify Help Center or the Community Blog.
Thanks for your reply Zameer is there any way to speed u that approval? We have been severely delayed in our development efforts because of Shopify's misleading documentation and processes for your API's. We originally were following your documentation to setup ShopifyPayments with Stripe but we never got back anything for the "shopify_payments_account_id" propety of the checkout object after creating it (I have since found forum comments that confirm this will be returned on shopify payments are approved so I guess the approval delay and process is what our first roadblock was. Now we have started to attempt to simply use ShopifyPayments directly (without Stripe, and using Shopify's vault endpoint), but apparently we can't test that either until we get this "approval".
Please let us know when you get a chance.
Thanks again for your assistance
Hey,
I've reviewed your open support ticket with our Partner Specialists team and it doesn't seem like Sureshot is eligible for the Sales Channel SDK, because it doesn't operate as a Marketplace, which is one of the requirements.
If there's a misunderstanding about how Sureshot is intended to operate and it is indeed a marketplace, the quickest route to approval would be to clarify the details on the support ticket as requested by Paula.
To learn more visit the Shopify Help Center or the Community Blog.