Hey team,
We are getting a malformed URL on Billing Success from Shopify on our platform. This is causing issues when we are trying to confirm the billing for our customers.
We are using the API - https://shopify.dev/api/admin-rest/2021-10/resources/applicationcharge#[post]/admin/api/2021-10/application_charges.json to create One time charges on the platform.
The “return_url” we are providing in the API is of the form - {API_ENDPOINT}/api/v1/shopify/{self.website.subdomain}/topup/activate/?sku={topup.sku}
The path that Shopify is hitting us with is of the form:
- {API_ENDPOINT}/api/v1/shopify/{self.website.subdomain}/topup/activate/?sku={topup.sku}?charge_id={CHARGE_ID}
Please note that “?” before charge_id instead of “&”.
Example format of a correct URL:
- {API_ENDPOINT}/api/v1/shopify/{self.website.subdomain}/topup/activate/?sku={topup.sku}&charge_id={CHARGE_ID}
The URL parameters should be separated with “&” rather than with “?”.
Is there something that I am missing here?
Thanks,
Abhishek.