Best Practices for Withdrawal Integration
This page describes a streamlined approach to align steps described in Withdrawal Integration guide, without making your backend complicated going forth and back.
Please see How Does Withdrawal Flow Work With Your System to get more context of it.
Step 1
Make a GET endpoint on your backend which has the following implementation in it:
- Initiate withdrawal process.
- Redirect to the following route using the withdrawal token from the previous step, which shows PayCoinly withdrawal UI.
https://app.paycoinly.xyz/claim?token={token}
Step 2
Connect a button in your customer page to Step 1 endpoint.
<button onclick="window.open('https://your-system-domain/step-1-endpoint', 'Withdraw with PayCoinly', 'width=800,height=550,left=200,top=100');">
<img src="https://app.paycoinly.xyz/logo/light.svg" style="width: 150px;" />
</button>