Development discussions around Shopify APIs
To continue receiving payouts, you need to secure your account by turning on two-step authentication. If two-step authentication is not turned on your payouts will be paused. Learn more
I have the following flow:
1. get payment into my service. I would like to implement authorization and capture.
2. redirect to gateway and perform payment - then redirect to shopify x_url_complete with query params. Also send callback with data in x-form-urlencoded format. Both (redirections and callback send Response model as pointed in docs: "https://shopify.dev/docs/hosted-payment-sdk/reference/response-values"). I redirect with "authorization" transaction type and "completed" result. All is okay I got success, and in shopify admin panel I can see Authorization status.
3. If I want to capture it - I click capture and got capture request. I do callback with ResponseModel "https://shopify.dev/docs/hosted-payment-sdk/reference/response-values" with "authorization" transaction type and "completed" (only in this case I didn't receive 422 resp status code). And after doing callback request I just return 200 OK without any body. Then I can see, that my order is in status "pending". Could someone explain what I'm doing wrong?
3.1 why in capture request I have different x_reference? If I use it - I also got 422 status code as callback response.
With "sale" mode all is okay - order is paid.status before capturing
payload for callback in "capture" request
pending status after capture callback resopnse 200 OK
User | RANK |
---|---|
5 | |
5 | |
4 | |
4 | |
4 |
Learn these 5 things I had to learn the hard way with starting and running my own business
By Kitana Jan 27, 2023Would you love to unleash the unbridled power of the Google Shopping Channel into your sho...
By Gabe Jan 6, 2023How can you turn a hobby into a career? That’s what Emmanuel did while working as a wa...
By Skye Dec 30, 2022