TrueMoney Wallet
Basic information
TrueMoney Wallet is a digital wallet. Customers follow the instructions on the payment page or in the wallet to confirm the payment.
- Integration paths: Checkout, Web SDK, Direct API (only after Onerway confirms availability)
- Transaction type: One-time payment
lpmsInfo.lpmsType:TrueMoney Wallet- Web SDK
config.paymentMethod:['TrueMoney Wallet']
| Customer country/region | Order currency |
|---|---|
| 🇹🇭 TH | THB |
The customer country/region is the billingInformation.country value in the payment request.
This guide covers enabled configurations for payments in a desktop browser. With Checkout or the Web SDK, the customer selects TrueMoney Wallet from the methods available for the order.
Before integrating another market or using another order currency, confirm the enabled scope for your merchant account and application with Onerway, then use List available payment methods to check the current order.
Before you begin
Complete Setup and confirm with Onerway that TrueMoney Wallet is enabled for your merchant and application. Also confirm the applicable transaction limits, payment validity period, and settlement arrangements. For amount formatting, see Currency and amount validation.
Configure your server notification URL and customer return URL, and store the mapping between your order and paymentId. If the flow redirects the customer, use the return page to restore the order view.
Start the payment
Direct API
Use this path only after Onerway has explicitly confirmed Direct API availability for your merchant application. Method enablement or availability in Checkout does not establish Direct API availability. Until this is confirmed, use Checkout or the Web SDK as described below.
- Check List available payment methods for the current order. After the customer selects this method, call Create direct transaction from your server with
productType=LPMS,subProductType=DIRECT,txnType=SALE, andpaymentMode=WEB. SetlpmsType=TrueMoney WalletinlpmsInfo, encoded as a JSON string. - Supply the required
emailand actualcountryin bothbillingInformationandshippingInformation, together with the other fields required by the API conditions. Collect and submit these details before creating this Direct payment. Encode both objects as JSON strings. Include products, notification and return URLs, and merchant-collected end-user IP, browser, and device information intxnOrderMsg. Keep product and order currencies consistent, with product amounts, discounts, and shipping fees adding up toorderAmount.
Select the request example “Redirect local payment request (illustrative)”. It uses Bancontact / BE / EUR to show the shared structure. Replace the method withTrueMoney Wallet, use THB for this flow, and supply the actual order and customer details. The example amount does not establish a transaction limit. - Store the returned
paymentIdandtransactionId. Whenstatus=RandactionType=RedirectURL, direct the customer toredirectUrl. The response example “Redirect local payment response (illustrative)” shows this shape. For other actions or states, follow Local payment integration. Do not repeatedly create the same order while waiting. - The returned
redirectUrlmay open a provider payment page or the wallet. The customer follows the instructions for that attempt. When the customer returns to your site, display the result retrieved from your server. See Request authentication for authentication.
Checkout
- On your server, call Create checkout payment with
productType=ALL,subProductType=DIRECT, andtxnType=SALE. To show only TrueMoney Wallet, setlpmsInfo.lpmsTypetoTrueMoney Wallet, sendinglpmsInfoas a JSON string. If you omitlpmsInfo, the customer chooses from the methods available for the order. - Supply the billing, shipping, product, return URL, and notification URL fields required by the API. Encode
billingInformationandshippingInformationas JSON strings, including the required email and country for each. Keep product and order currencies consistent and ensure that product amounts, discount entries, and shipping fees add up toorderAmount.
Select the request example “Unified Checkout with all available payment methods”, replace the order and customer details, and add this method'slpmsInfoif you want to select only this method. Remove the example’scardInfoobject for this flow. - Select the response example “Unified Checkout session created”. Store the returned
paymentIdandtransactionIdagainst your order, then redirect the customer's browser toredirectUrl. The initialstatus=Umeans that payment has not been completed. - Onerway Checkout handles the payment page and customer payment interaction. When the customer reaches
returnUrl, retrieve the order result from your server. If no notification has arrived, use the stored transaction identifier to Query transactions. For request authentication, redirects, and return handling, see Checkout integration.
Web SDK
For this SDK path, keep the SDK billing address form (leave config.showBillingAddress at its default true) so the customer enters billing details as prompted. You can send billing information you already hold when creating or updating the order. For field formats and conditions, see Create SDK transaction.
- On your server, call Create SDK transaction with
productType=ALL,subProductType=DIRECT, andtxnType=SALE. Select the request example “One-time SDK payment” and the response example “One-time SDK transaction created”. These examples show the shared creation flow before a payment method is selected. Replace the amount, currency, and product details with the actual order, keeping the product and order currencies consistent. - Initialize Checkout with the returned
paymentId, following Web SDK integration. To display only this method, setconfig.paymentMethodto['TrueMoney Wallet']in the initialization options. Then subscribe to events and mount the Payment Element. This configuration only filters methods returned by the server; it does not enable TrueMoney Wallet. - In the
readyevent, check thatavailablePaymentMethodscontainsTrueMoney Wallet. - After the customer selects TrueMoney Wallet and completes the form, call
confirmPayment()from your payment button. Handle the actualpaymentStatusandnextActionreturned. For the complete event and error handling flow, see Web SDK integration.
With the Web SDK, paymentStatus=R means that customer interaction must continue. Handle the actual nextAction.type returned:
PresentToShopper: keep the current SDK Checkout instance and leave its Payment Element mounted while the SDK presents the payment interface, wait forpayment_result, and do not callconfirmPayment()again.RedirectShopper: wait for the customer to reach thereturnUrlsupplied when creating the order, then query the order on your server. Initially show that the result is being confirmed.
Customer actions and final result
Customers follow the address returned for the current attempt to continue with TrueMoney Wallet. When a desktop payment page displays a QR code, they scan it with the TrueMoney wallet app, review the payment details, and follow the app instructions to confirm. The payment page displays the QR code; your application does not generate or parse it. Customers need an active TrueMoney wallet account and a phone that can scan the code.
If the payment page displays a countdown, it indicates the remaining lifetime of that payment link. If the link expires or the customer does not finish scanning, query the original order before deciding what to do next. Do not mark the order as failed or create a duplicate order based only on the countdown.
Process the order on your server using a signature-verified payment result webhook. If the notification has not arrived or you need to check the result, call Query payments with the stored paymentId. Fulfill the order only after your server confirms a successful payment. For verification, acknowledgement, idempotency, and query fallback, see Webhooks.
Closing the payment page or returning to your site does not establish a successful payment. Restore page interaction after a cancellation and continue to use the server result for the order status. Do not fulfill an order or update your ledger based on status parameters in the return URL.
Refunds and disputes
Before integration, confirm the refund capabilities, restrictions, and dispute process applicable to your merchant with Onerway. If refunds are enabled, follow Refunds.
Testing and go-live
Test each integration path you use. For the Direct API, handle the actual response and verify that R + RedirectURL opens the returned address. Checkout must open its initial redirectUrl and display the method; the Web SDK must include it in ready.availablePaymentMethods. The payment and server-result checks below apply to all three paths.
Confirm the test environment and available TrueMoney Wallet test options with Onerway, then follow Sandbox testing:
- Create an order using an enabled country, THB, and your test amount. Confirm that
TrueMoney Walletis available through your chosen integration path. If it is not, check the merchant, application, and order configuration. - Open the returned address in the desktop flow and check the current payment instructions. If a QR code is displayed, verify that it renders correctly. Follow the test procedure agreed with Onerway to verify the payment result, then confirm it on your server before updating the order. Before testing a real scan, confirm the applicable environment and payment app with Onerway. For go-live acceptance, retain the notification and acknowledgement for the same order, then make an active query to verify that the results agree.
- Cancel or close the payment page partway through the flow. Confirm that a return to your site alone never marks the order as paid, and test query fallback when no notification has arrived.
- Verify idempotent handling of duplicate notifications. Before going live, check production enablement, notification and return URLs, limits, and validity periods. Test refunds separately if they are enabled.