Web app integration
Embed Wonder checkout into any website or e-commerce platform with a few lines of JavaScript — themeable, mobile-first, PCI-compliant.
- Drop-in Web SDK or fully hosted Payment Page
- Supports cards, FPS, Apple Pay, Google Pay, WeChat Pay, Alipay, PayMe, Octopus
- Pre-create the order server-side, then mount the SDK on the client
// 1. Server: create an order with your signed Open API request
POST https://gateway-stg.wonder.today/svc/payment/api/v1/orders
{
"order_no": "ORDER_20260101_0001",
"amount": "100.00",
"currency": "HKD"
}
// 2. Client: mount the Wonder Web SDK with the returned order_no
<script src="https://cdn.wonder.app/sdk/web/v1/wonder.js"></script>
<script>
Wonder.checkout({
appId: "YOUR_APP_ID",
orderNo: "ORDER_20260101_0001",
onSuccess: (result) => console.log("paid", result),
onCancel: () => console.log("cancelled"),
});
</script>