Shopify Payment subscription issue showing status as pending

Marthamurray
Shopify Partner
4 0 1

Hi,We build a platform for promoting our brands and we are using Shopify Payment gateway. When we tested our platform we got the following error code

 

{"code":200,"charge":{"id":23826366537,"name":"Standard","api_client_id":5305983,"price":"100.00","status":"pending","return_url":null,"billing_on":null,"created_at":"2023-02-27T18:50:10+05:30","updated_at":"2023-02-27T18:50:10+05:30","test":true,"activated_on":null,"cancelled_on":null,"trial_days":0,"currency":"USD","trial_ends_on":null,"decorated_return_url":"http://portal.ambr.app/s_auth/?charge_id=23826366537&code=&hmac=b604fc21d1c831152e6fe20e8a60c579dcc1...

 

When confirming with the confirmation URL getting the following response: 

There’s a problem loading this page

There’s a technical problem with Shopify that has prevented this page from loading. Try reloading this page or going to another page in Shopify. If that doesn’t work, visit our status page for updates and try again later.

 

 

Replies 2 (2)

ShopifyDevSup
Shopify Staff
1312 215 454

Hi Marthamurray,

 

Thanks for your post. We've identified that this issue occurs when the recurring application charge is created without the return_url being specified, even though the confirmation URL is still generated. An internal bug report has been submitted about this.

 

Currently the simplest solution is to always specify the return_url when creating a recurring application charge.

 

Hope you have a great day

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

Marthamurray
Shopify Partner
4 0 1

Hi

We specified the return_url when creating a recurring application charge but still we face the same issue and 500 error is showing. Kindly suggest any other option to get this issue resolved.

 

Added the input parameter which we are passing for subscripition creation

{
name: 'Advanced',
returnUrl: 'https://portal.ambr.app:3000/shopifyWebhook/',
price: '500',
test: true,
TrialDays: 0
}

 

Thanks