Issues Completing a Sales Channel Payment with the Checkout API using SPREEDLY

juankuick
New Member
4 0 0

We are trying to complete Sales Channels Payments with the Shopify Checkout API using SPREEDLY but below is the error we get. PLEASE HELP

juankuick_0-1633467460203.png

Please watch the video below on the Step by Step following the Shopify documentation (https://shopify.dev/apps/channels/complete-payment) and for some reason we get an INVALID error. Video LInk > https://drive.google.com/file/d/1em9HYsYT4UcgjjsAtcG4RH8ROSCUlIX7/view?usp=sharing 

Also, you can watch this additional video when we're connecting Spreedly's iFrame with a DEMO Shopify Store. Video Link > https://drive.google.com/file/d/10Rzl-3VqE4SCJ8giLRD478b-YhAtpFmC/view?usp=sharing 

 

Replies 4 (4)

juankuick
New Member
4 0 0

Anyone have any idea about this? 

juankuick
New Member
4 0 0

Below the comments we received from Spreedly:

We have reviewed both videos, and it looks as though the Spreedly portion is working correctly - both visible in the videos, and showing success in our logs when both creating the payment method in Spreedly and delivering to Shopify. 

What we are seeing is that the process is failing when using the Checkout API to process the transaction in Shopify.  The error code, 422 Unprocessable Entity, according to Shopify's documentation points to, "the request body was well-formed but contains semantic errors." (https://shopify.dev/api/usage/response-codes)

 

 

pensebien
Visitor
2 0 0

Going through the documentation from Spreedly and your video, I discovered that Shopify specified the 

 

"gateway": null

 

when I check the checkouts endpoint.

 

curl -d '{"checkout":{"line_items":[{"variant_id":39072856,"quantity":5}]}}' \
-X POST "https://your-development-store.myshopify.com/admin/api/2021-10/checkouts.json" \
-H "X-Shopify-Access-Token: {access_token}" \
-H "Location: https://apple.myshopify.com/admin/api/unstable/checkouts/24e9cf6c29fca2e7b12be21b0d8d3627.json"

// Response
{
            "id": 22691767222459,
            "token": "24e9cf6c29fca2e7b12be21b0d8d3627",
            "cart_token": null,
            "email": "emma.kuick@gmail.com",
            "gateway": null,
            "buyer_accepts_marketing": false,
            "created_at": "2021-10-23T03:01:25-04:00",
            "updated_at": "2021-10-23T03:04:02-04:00",
            "landing_site": "/admin/api/2021-10/checkouts.json",
            "note": null,
            "note_attributes": [],
            "referring_site": null,
            "shipping_lines": [
          

 


Here is Loom video https://www.loom.com/share/87ccddfeb172416a88ee72494294bd69.

Can someone from Shopify help out to check what is done wrong here? Here is the X-Request-ID
X-Request-ID9cd2065d-b6b1-404a-8bdd-345ed2f5e6b6

BTW. I have tried to reformat the payload "session_id" by  from 
west-4cc5c472a048541476f577c12db6776a to 4cc5c472a048541476f577c12db6776a. But still having the same error. 

pensebien
Visitor
2 0 0

 

 

Could this be the default response for a test gateway?