Hi,
I am working on an Offsite payment extension. My payment gateway supports the “PayLater” method, but this method requires information about the purchased items (line name, line price).
Is it possible to retrieve the content of the order/checkout/cart in the payment extension?
The problem is that when the first request is sent to the payment extension, the order is not yet created. I also tested that when I simply return 200 and redirect Shopify to another “internal payment URL,” the order is still not created. I also tried querying abandonedCheckouts
, but without success.
Thanks.
Hi Viliam,
Could you access this info as cart based metafields?
Hi @Liam-Shopify,
I’m not sure what you’re referring to. From my understanding, Cart metafields are custom fields.
I don’t need to access custom data; I just need the line.name
and the line.price
for the currently processing order in the payment_session endpoint.
I can not use Order because this object is not yet created in the moment of calling payment session URL.
I also found out this sentence in requirements “API Usage: Your payment app must not use any Shopify APIs other than the Payments Apps API.” → so it means that it is not possible ?
I am not sure about the API usage requirements.
For example, if I want to access the order number after an order is paid (so that customers can better identify the relationship between the order and the payment), am I not allowed to do that?
It says that I can’t use any API other than the Payment Apps API, but at the same time, I know of payment apps that request read_order
permission to achieve the described functionality.
@Liam-Shopify Do you have any advice regarding these issues?