A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Is there a way for me to get a list of attempted orders that were abandoned due to credit card decline.
Solved! Go to the solution
This is an accepted solution.
Hey @SDock
So in the event of an abandonment due to a credit card decline (and order isn't created) the object would indeed just be an Abandoned Checkout (as opposed to a fully completed order).
You could poll the checkout token using the payments.json endpoint - you'd be able to retrieve a list of attempted payments on a checkout.
That said, the payments endpoint is used primarily by sales channels - and allows sales channels to build a fully native checkout experience by submitting a customer's payment details directly to Shopify. You'd need to request payment processing to be able to call the endpoint (more docs on that and the requirements for building a Sales Channel are here). Hope that helps!
This is an accepted solution.
Hey @SDock
So in the event of an abandonment due to a credit card decline (and order isn't created) the object would indeed just be an Abandoned Checkout (as opposed to a fully completed order).
You could poll the checkout token using the payments.json endpoint - you'd be able to retrieve a list of attempted payments on a checkout.
That said, the payments endpoint is used primarily by sales channels - and allows sales channels to build a fully native checkout experience by submitting a customer's payment details directly to Shopify. You'd need to request payment processing to be able to call the endpoint (more docs on that and the requirements for building a Sales Channel are here). Hope that helps!