Dedicated to the Hydrogen framework, headless commerce, and building custom storefronts using the Storefront API.
Hi,
Hi folks,
I created a store and am using `Storefront API` to fetch products to my react native application. I was also successful in leveraging `JS-Buy-SDK` to create a web checkout url after customers decide to check out the items that they select in my application. However, I'm a bit stuck on building a native payment solution to my application leveraging `Storefront API`. The API documentation https://help.shopify.com/en/api/storefront-api/guides/checkout-guide seems to suggest that `Shopify Card Vault` and `Stripe` Integrations are both possible. To use the mutations offered by both of these methods though, it seems like the `write-checkout-payments` feature needs to be enabled for my app. What I'm confused about a little bit is that I never created an app to use Storefront API. I just listed products to my store and was able to do everything without registering an App. What would be the best way to go about this? Should I register an app and requesting `payment processing` and `write checkout payments? Would that sync up with the store that I already have set up? Any help would be greatly appreciated...
Brian
Hey Brian,
Vaulting is specifically geared towards marketplace sales channels, but the Storefront API offers a ton of options for checking out that don't require vaulting.
Your best bet is probably to go through the app creation process that's detailed in the Getting Started guide. The guide shows how to start with a key, and then use that key to do things like get data from Shopify, and create checkouts.
If you have more questions after going through the guide, let us know!
Shayne | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
You mean to say theres no way for me to send credit card info via javascript to shopify? Why would I want to increase my PCI compliance level and let the card info touch my server? How can I complete my shopify payment without the credit card information touching the server? I use Authorize.net. I cant use vault because theres no way to do that from JS. What am I missing?
Hi Shayne,
You mentioned that vaulting is needed for marketplaces. What if we need to use API to connect the web app to only 1 store? It's not a marketplace, just a custom website that will sell products using Shopify API. You mentioned that Storefront API offers a lot of options for that - but I could not find any, except for using Vault or Stripe Connect. Please advice.
Hey,
does your sales Channel only support credit card payments since the Checkout API only supports credit card vault?
How is it possible to provide other payment options besides credit card payments as a sales channel?
Thanks
Julius