Open widget in modal
<button onClick="openSwitchereWidget()">
Click to open widget
</button>
<script src="https://sandbox.switchere.com/js/sdk-builder.js"></script>
<script>
window.openSwitchereWidget = function() {
window.switchereSdk.init({
// ...
mode : 'modal',
});
};
</script>
<div id="switchere" style="min-height: 500px; max-width: 450px; width: 100%;">Loading...</div>
<script src="https://sandbox.switchere.com/js/sdk-builder.js"></script>
<script>
window.switchereSdk.init({
el: '#switchere',
partnerKey: 'XXXXXXXXXXXXXXX',
partnerOrderId: 'xxxxx-xxxxx-xxxxx-xxxxx',
httpReturnSuccess: 'https://domain.tld/success',
httpReturnFailed: 'https://domain.tld/failed',
payinCurrency: 'USD',
payinGroup: 'card',
payoutAmount: '15',
payoutCurrency: 'XRP',
payoutGroup: 'crypto',
dstAddress: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxx',
memo: '10',
});
</script>
当前开发进度