Open the payment UI
To add the payment UI to your app, use this code:
Copy
- html
<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.
Was this article helpful?
Thank you for your feedback!
We'll review your message and use it to help us improve your experience.