Why can't I fetch the charge ID while building my app?

Why can't I fetch the charge ID while building my app?

Girish_Rajwani
Shopify Partner
82 3 8

Hi guys,

 

I am building Shopify app. I used custom route in return URL of recurring charge object & When the user approves charge, it is giving below error.

 

Session was not valid. Redirecting to /api/auth?shop=shop_name | {shop: shop_name}
2023-06-04 11:30:47 │ backend │ [shopify-api/ERROR] Missing Authorization header, was the request made with authenticatedFetch? |

 

However if i am giving only cloudfare URL then it is working. 

 

I want to fetch charge ID. Any help would be really appreciated.

 

Thanks in advance 🙂

Girish | Shopify Expert  
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - My Shopify Apps: App Store | Looking for a solution to a problem in your store? Send me an email

Replies 0 (0)