Scope
How to remove the 'go to app' option on the Manage payment methods page?
Summary
When you call the API 'Manage Payment Source' and add the input parameter 'redirect_url' with the URL information, the Go to app button will appear at the bottom of the portal.
In similar instances, to remove this button, you can stop passing the redirect_url parameter in the API call and the button will not appear.
Solution
We can define redirect URLs in plan levels or any checkout generated for subscription creation or upgrade easily by defining it in the Chargebee’s UI. You can learn more about adding these URLs on the checkout page here.
However, the ‘Manage Payment sources’ page which is available in the self-service portal, does not allow you to apply the URL via the Chargebee UI. Hence, you can add or remove this URL embedded to a ‘Go to App’ button by using API calls.
By default, the Manage Payment Sources page will look like the screenshot below,
You call the API 'Manage Payment Source', add the input parameter 'redirect_url' with the URL information, and the button will appear as provided in the screenshot below,
In similar instances, to remove this button, you can stop passing this parameter ('redirect_url') in the API call and the button will not appear.
Related articles and Documentation