Hosted Checkout Integration
Set up the hosted Checkout page
When customers click a button on your website, they are redirected to the elepay‑hosted Checkout page.
- Effort: low code, ~20 minutes
- Implementation style: hosted page
- UI flexibility: limited
When customers have already selected items and are ready to purchase, follow the steps below.
Step 1: Create an EasyQR code for the selected items
Configure the Checkout page
Example for Create EasyQR code:
--data '
{
"currency": "JPY",
"extra": {
"defaultPaymentMethod": "paypay" # QR code for a specific brand
},
"amount": 266, # Show total amount
"items": [ # Show details for each item
{
"name": "お茶",
"price": 108,
"count": 1
},
{
"name": "コーラ",
"price": 158,
"count": 1
}
]
}
'
| Show details for each item | Show only total amount | QR code for a specific brand |
|---|---|---|
![]() | ![]() | ![]() |
Step 2: Add a payment button on your site and redirect to the Checkout page
Append the mode=auto parameter to the codeUrl returned in Step 1 and redirect to it. The page automatically detects the device type: it shows the Checkout page on desktop and the Payment page on mobile. This step requires neither the JavaScript SDK nor the public key.
// codeUrl: the codeUrl returned by Create EasyQR code in Step 1
const url = new URL(codeUrl);
url.searchParams.set('mode', 'auto');
window.location.href = url.toString();Step 3: After the customer completes payment, handle the redirect page and status
After the payment flow finishes, the redirect URL includes a status parameter (e.g., status=captured), which allows the frontend to determine success or failure.
- captured: Payment completed
- cancelled: Payment cancelled
- failure: Payment failed
👍 To track payment status accurately, receiving event notifications via Webhook is recommended.
In elepay [開発設定>Webhook], you can configure the receiving URL.
When a payment succeeds, elepay sends an event notification to the configured webhook URL.
Other settings
Customize the Checkout page UI
The Checkout page customers see can be customized under elepay [簡単決済>設定>基本設定], including icon and color scheme.
Configure payment methods
Under elepay [簡単決済>設定>決済方法管理], you can manage available payment methods (review, enable, disable). Newly added payment methods can be used immediately.
Add location information
You can add location information when creating the EasyQR code. It is also manageable under elepay [ロケーション].
Last updated on


