Open the payment UI

To add the payment UI to your app, use this code:

Copy
Full screen
Small screen
<html>
<head lang="en">
    <meta charset="UTF-8">
</head>
<body>
    <button data-xpaystation-widget-open>Buy Credits</button>

    <?php \Xsolla\SDK\API\PaymentUI\PaymentUIScriptRenderer::send($paymentUIToken, $isSandbox = true); ?>
</body>
</html>

The detailed information about opening the payment UI is available in the API documentation and the Pay Station integration guide.

Continue reading