You must get customer_token, payment_secret and payment_id first at your backend to OJIRE API via request to /v1/payment-intents endpoint
Method 1: HTML/Script Tag#
Method 2: ES Modules / React#
Install#
Usage#
API Reference#
| Option | Type | Description |
|---|
token | string | Customer token from payment intent |
clientSecret | string | Payment intent client secret |
merchantId | string | Merchant identifier |
paymentId | string | Payment identifier |
sandbox | boolean | Enable sandbox mode (optional) |
onSuccess | function | Callback when payment succeeds |
onPending | function | Callback when payment is pending |
onError | function | Callback when payment fails |
onClose | function | Callback when modal is closed |
Screenshot Example#