Re: How to Create a Payment Session to get a Session ID

How to Create a Payment Session to get a Session ID

KeyferGoody
Visitor
2 0 3

Hey folks,

 

Our team is building an app for our sales channel and as part of this, we intend to use the Payments resource, enabling us to submit payment details directly to Shopify. 

 

While our app request for Payment Processing is currently being reviewed by the Shopify team, we are exploring the documentation and have gotten stuck. It seems as though the developer documentation references the ability to "create a payment session by submitting the card details to Shopify's card vault in exchange for a session ID", but we cannot find any documentation on which endpoint to use or what the payload is supposed to look like.

 

We've explored a few areas of documentation, but can't seem to find an answer here or anywhere else online:

 

  1. https://shopify.dev/api/admin-rest/2023-01/resources/payment#create_payment_session-2020-10. This one states that to complete a payment using the payment resource we can create a payment session by submitting the card details in exchange for a session ID but doesn't detail how to do this.
  2. https://shopify.dev/custom-storefronts/checkout/create#shopify-card-vault. This one states that "To get the vault ID to complete a payment, you need to send a POST request to the Shopify card vault, and provides a sample response, but doesn't detail what endpoint to use for the POST request, nor the payload shape.

 

Here's hoping someone might be able to point us in the right direction or share the steps they used to create a session ID from Shopify's card vault.

 

Best,

 

 

 

Reply 1 (1)

hates
Shopify Partner
7 1 4

Hi,

 

this thread is duplicated. Please find solution here: 
https://community.shopify.com/c/sales-channels-payments-apps-and/how-to-create-a-payment-session-to-... 

 

Best Regards