Page Integration

Redirection

This is the fastest and easiest way to integrate with AlchemyPay. You can redirect your website or application to the AlchemyPay page by copying and editing the following sample code.

📘

Tips

To improve the user experience, it is recommended to open AlchemyPay on a new tab with theredirectURLparameter, so that your users can redirect back to your website after completing the payment.

When you redirect, you need to carry the appID assigned to you by AlchemyPay, and you can carry your custom parameters in the link, such as crypto address network and so on.

<a href="https://ramptest.alchemypay.org/?appId=[YOUR_TEST_APPID]&[QUERY_PARAMETERS]>">
Buy/Sell Crypto with AlchemyPay</a>
<a href="https://ramp.alchemypay.org/?appId=[YOUR_PRODUCTION_API_KEY]&[QUERY_PARAMETERS]>">
Buy/Sell Crypto with AlchemyPay</a>

Iframe

You can add AlchemyPay directly to the pages of your website or application using the sample code below. We recommend testing to ensure the default IFrame height and width in the code below work well for your page, and adjust them if needed.

<iframe height="625" title="AlchemyPay On/Off Ramp Widget"
src="https://ramptest.alchemypay.org/?appId=[YOUR_TEST_APPID]&[QUERY_PARAMETERS]" 
frameborder="no" allowtransparency="true" allowfullscreen="" 
style="display: block; width: 100%; max-height: 625px; max-width: 500px;">
</iframe>
<iframe height="625" title="AlchemyPay On/Off Ramp Widget"
src="https://ramp.alchemypay.org/?appId=[YOUR_PRODUCTION_API_KEY]&[QUERY_PARAMETERS]" 
frameborder="no" allowtransparency="true" allowfullscreen="" 
style="display: block; width: 100%; max-height: 625px; max-width: 500px;">
</iframe>