TrueMoney Wallet
Overview
TrueMoney Wallet is a payment method which allows customers to make purchases in Thailand by scanning standardized QR codes with mobile banking applications of Thailand banks. Purchases can be processed by using Payment Page and Gate. Download the logo in vector format here. |
Payment method type | Payments by using QR code |
---|---|
Countries and regions | Thailand |
Payment currencies | THB |
Currency conversion | |
Purchases | |
Payouts | * |
COF payments | |
Full refunds | |
Partial refunds | |
Chargebacks | |
Notes | Depending on the payment processing provider, the expiration time of the QR code on the provider side is either 5 or 2 minutes. |
Onboarding and access fee | Refer to your Monetix key account manager |
* Within the TrueMoney Wallet method, payouts can be performed in Thailand by using the Banks of Thailand payment method.
Interaction diagram
Payment processing by using the TrueMoney Wallet payment method requires merchant's web service, one of Monetix interfaces, and the Monetix payment platform, as well as provider technical facilities.
Operations support
Interfaces | Amounts, THB | Times | |||||
---|---|---|---|---|---|---|---|
Payment Page | Gate | Dashboard | minimum | maximum | basic | threshold | |
Purchases | 100.00 | 500,000.00 |
You can check the payment amount limits in your project by using Dashboard. To check your payment amount limits, go to Dashboard, select the Projects section and click the Payment methods tab.
Processing scenarios
Purchase processing by using the TrueMoney Wallet method is performed with redirection of the customer to the provider service.
The following sections provide detailed information about what you need to do to perform payments and how you can analyze the information on payments and operations.
Purchase by using Payment Page
General information
In the TrueMoney Wallet methods, when processing a purchase by using Payment Page, the merchant web service should send a request with all the required parameters and signature to the Monetix URL and get the callback with the payment result from the payment platform. When opening Payment Page, you can have Payment Page opened with one of the TrueMoney Wallet methods selected. For more information about preselecting payment methods, see in Preselecting payment methods. The full sequence and particularities of the purchase process are provided below.
- A customer initiates a purchase on the merchant's web service.
- The web service sends the request for Payment Page opening to the specified Monetix URL.
- The request for opening is redirected to the payment platform.
- The payment platform performs the initial request processing that involves validation of the required parameters and signature.
- Requested Payment Page is generated into the Monetix payment platform as specified in the project settings and the request parameters.
- Payment Page is displayed to the customer.
- The customer selects the TrueMoney Wallet method.
- The payment platform receives the purchase request for payment processing from Payment Page.
- The payment platform performs the internal purchase request processing.
- The payment platform sends the customer redirection data to Payment Page.
- The customer is redirected to the provider website.
- The customer completes all the payment steps required.
- The payment is processed on the provider side.
- The customer is redirected to Payment Page.
- The provider service sends the result notification to the payment platform.
- The payment platform sends a callback with the payment result to the web service.
- The payment platform sends the result to Payment Page.
- A page with the payment result information is displayed to the customer on Payment Page.
The sections that follow discuss in more details the request format and the Payment Page parameters to use in the TrueMoney Wallet payment method and provide the information on the format of callbacks with payment results. For the general information on how to use the API, see Payment Page API Description.
Request format
There are several things you need to consider when using the TrueMoney Wallet method:
- You must provide values for the basic minimum of parameters. Listed below are the parameters that are required for any payment method:
- project_id—the project ID obtained from Monetix
- payment_id—payment ID unique within the project
- payment_currency—payment currency in ISO-4217 alpha-3 format
- payment_amount—payment amount in minor currency units without any decimal point or comma except for cases where the currency does not have any minor currency units. If the currency has no minor units (that is, the number of digits for minor currency units is zero), then you must set this parameter to the amount in the major currency units. For the information on whether the currency has any minor units, see Currency codes.
- customer_id—the unique ID of the customer within your project
- customer_email—customer email
- customer_first_name—customer first name
- customer_last_name—customer last name
- The currency of payment can only be THB.
- If you need the payment form to open with the TrueMoney Wallet method as preselected payment method, set the force_payment_method parameter to
true-money
. - If required, you can also add any other additional parameters Payment Page supports.
- After you specify all the parameters you need, you must create the signature for the request. For instructions on how to sign a payment request, see Signature generation and verification.
Here is an example of data from a request for Payment Page opening:
EPayWidget.run( { project_id: 1234, payment_id: 'payment_47', customer_id: 'customer_123', payment_currency: 'THB', payment_amount: 1000, customer_first_name: 'John', customer_last_name: 'Doe', customer_email: 'johndoe@email.com', signature: "kUi2x9dKHAVNU0FYldJrxh4yo+52Kt8KU+Y19vySO\/RLUkDJrOcZzUCwX6R\/ekpZhkIQg==" } )
For information about all parameters available in the TrueMoney Wallet method, see Payment Page invocation parameters.
Callback format
The TrueMoney Wallet method uses the standard format for callbacks to deliver purchase results. For more information, see Callbacks in Payment Page.
The following is the example of a callback with an information about successful 100.00 THB
purchase made by the customer1
customer in the 12345
project.
{ "customer": { "id": "customer1" }, "project_id": 12345, "payment": { "id": "payment1234", "type": "purchase", "status": "success", "date": "2021-10-12T08:16:05+0000", "method": "true-money", "sum": { "amount": 10000, "currency": "THB" }, "description": "" }, "operation": { "id": 5054705010079872, "type": "sale", "status": "success", "date": "2021-10-12T08:16:05+0000", "created_date": "2021-10-12T08:14:01+0000", "request_id": "a41fcbe99835e5fbc69770344bce...cc2f804083379379c2da5-05054706", "sum_initial": { "amount": 10000, "currency": "THB" }, "sum_converted": { "amount": 10000, "currency": "THB" }, "code": "0", "message": "Success", "provider": { "id": 6641, "payment_id": "2021101203031281", "auth_code": "" } }, "signature": "EIrbFLdIqieeX/Oi2Xl/3xADlmidzSRqKsFz7VX5s...wKVXTkpC2CNA==" }
The following is the example of a callback for a declined purchase.
{ "customer": { "id": "1" }, "project_id": 67890, "payment": { "id": "payment5678", "type": "purchase", "status": "decline", "date": "2021-10-13T08:10:17+0000", "method": "true-money", "sum": { "amount": 10000, "currency": "THB" }, "description": "TEST_PAYMENT_812515" }, "operation": { "id": 5000375010078322, "type": "sale", "status": "decline", "date": "2021-10-13T08:10:17+0000", "created_date": "2021-10-12T08:10:11+0000", "request_id": "6d2129131a347e8107b6bc2e3249f13...a483c36017-05000376", "sum_initial": { "amount": 10000, "currency": "THB" }, "sum_converted": { "amount": 10000, "currency": "THB" }, "code": "20000", "message": "General decline", "provider": { "id": 6641, "payment_id": "", "auth_code": "" } }, "signature": "bRj3VHm1qT1/RRrWrqW9LwxM5C9bTpoTx7Ip...emz2GxIdEyAeC4oA8w==" }
Related topics
The following topics might be useful when implementing payments by using Payment Page:
Purchase by using Gate
General information
In the TrueMoney Wallet methods, when processing a purchase by using Gate, the merchant web service is required to do the following:
- Send a request with all the required parameters and signature to the Monetix URL.
- Perform the redirection of a customer to the provider service.
- Get the callback with the payment result from the payment platform.
The following diagram provides the detailed picture of the payment processing procedure.
- A customer initiates a purchase through provider on the merchant's web service side.
- The web service sends the request for processing the purchase by using Gate to the specified Monetix URL.
- The payment platform receives the request for processing the purchase from Gate.
- The payment platform performs the initial request processing that includes validation of the required parameters and signature.
- The payment platform sends the response with request receipt confirmation and correctness check result to the web service. For more information, see Response structure.
- The payment platform performs the internal purchase request processing.
- The payment platform sends the callback with the redirection data in the redirect_data object to the web service.
- The customer is redirected from the web service to the provider service.
- The customer completes all the payment steps required.
- The payment is processed on the provider side.
- The customer is redirected to the merchant's web service.
- The provider service sends the payment result notification to the payment platform.
- The payment platform sends a callback to the web service.
- The customer receives the payment result on the web service.
The sections that follow discuss in more details the request format and the Gate parameters to use in the TrueMoney Wallet payment method and provide the information on the format of callbacks with purchase results.
Request format
There are several things you must consider when using purchase requests in the TrueMoney Wallet method:- You send purchase requests by sending request to
/v2/payment/wallet/true-money/sale
by using POST (HTTP) method. This is an e-wallet payment requests group: /v2/payment/wallet/{payment_method}/sale. - The following objects and parameters must be specified in any request:
- general—object with general request identification information:
- project_id—the project ID obtained from Monetix
- payment_id—payment ID unique within the project
- signature—signature created after you specify all the required parameters. For more information about signature generation, see Signature generation and verification.
- customer—object with customer information:
- id—the unique ID of the customer within your project
- ip_address—IP address of the customer's device
- email—customer email
- first_name—customer first name
- last_name—customer last name
- payment—object with purchase information:
- amount—purchase amount in minor currency units without any decimal point or comma except for cases where the currency does not have any minor currency units. If the currency has no minor units (that is, the number of digits for minor currency units is zero), then you must set this parameter to the amount in the major currency units. For the information on whether the currency has any minor units, see Currency codes.
- currency—code of purchase currency in the ISO-4217 alpha-3 format
- return_url—object with the information where to redirect the customer to when the payment is completed:
- success—the URL to redirect the customer to after the payment is successfully completed.
- general—object with general request identification information:
- The following parameters with the return URLs are optional, but we strongly advise you to specify them in the request to provide your customer a better user experience.
- return_url—object with the information where to redirect the customer to when the payment is completed or prematurely terminated by the customer:
- decline—the URL to redirect the customer to after the payment is declined.
- return—the URL to redirect the customer to when they prematurely terminate the payment. This URL is also used if the decline parameter is not specified in the request.
- return_url—object with the information where to redirect the customer to when the payment is completed or prematurely terminated by the customer:
- The currency of purchase can only be THB.
- If required, you can also add any other additional parameters Gate supports.
Here is an example of data from a purchase request in the TrueMoney Wallet method.
{ "general": { "project_id": 1234, "payment_id": "payment_47", "signature": "PJkV8ej\/UG0Di8hTng6JvC7vQsaC6tajQVVfBaNIipTv+AWoXW\/9MTO8yJA==" }, "customer": { "id": "customer_123", "ip_address": "198.51.100.47", "first_name": "John", "last_name": "Doe", "email": "johndoe@example.com" }, "payment": { "amount": 10000, "currency": "THB" }, "return_url": { "success": "https://example.com/success/", "decline": "https://example.com/decline/", "return": "https://example.com/return/" } }
Format of customer redirection data
After receiving and processing your purchase request, the payment platform sends a callback to your web service containing the data to redirect the customer to the provider service.
To redirect the customer, use the values of the following parameters in the redirect_data object:
- url—the URL to redirect the customer to
- body—the data to be sent in the request body
- method—the HTTP method to get an HTML page of the website (for example, POST or GET)
- encrypted—this is the service parameter. Ignore the data it contains.
Here is an example of a piece of callback containing the data to redirect the customer.
"redirect_data": { "method": "POST", "body": { "example_parameter_1": "value_1", "example_parameter_2": "value_2" }, "encrypted": [], "url": "https://example.com/redirect" }
Callback format
The TrueMoney Wallet method uses the standard format for callbacks to deliver purchase results. For more information, see Callbacks in Gate.
The following is the example of a callback with an information about successful 100.00 THB
purchase made by the customer1
customer in the 12345
project.
{ "customer": { "id": "customer1" }, "project_id": 12345, "payment": { "id": "payment1234", "type": "purchase", "status": "success", "date": "2021-10-12T08:16:05+0000", "method": "true-money", "sum": { "amount": 10000, "currency": "THB" }, "description": "" }, "operation": { "id": 5054705010079872, "type": "sale", "status": "success", "date": "2021-10-12T08:16:05+0000", "created_date": "2021-10-12T08:14:01+0000", "request_id": "a41fcbe99835e5fbc69770344bce...cc2f804083379379c2da5-05054706", "sum_initial": { "amount": 10000, "currency": "THB" }, "sum_converted": { "amount": 10000, "currency": "THB" }, "code": "0", "message": "Success", "provider": { "id": 6641, "payment_id": "2021101203031281", "auth_code": "" } }, "signature": "EIrbFLdIqieeX/Oi2Xl/3xADlmidzSRqKsFz7VX5s...wKVXTkpC2CNA==" }
The following is the example of a callback for a declined purchase.
{ "customer": { "id": "1" }, "project_id": 67890, "payment": { "id": "payment5678", "type": "purchase", "status": "decline", "date": "2021-10-13T08:10:17+0000", "method": "true-money", "sum": { "amount": 10000, "currency": "THB" }, "description": "" }, "operation": { "id": 5000375010078322, "type": "sale", "status": "decline", "date": "2021-10-13T08:10:17+0000", "created_date": "2021-10-12T08:10:11+0000", "request_id": "6d2129131a347e8107b6bc2e3249f13...a483c36017-05000376", "sum_initial": { "amount": 10000, "currency": "THB" }, "sum_converted": { "amount": 10000, "currency": "THB" }, "code": "20000", "message": "General decline", "provider": { "id": 6641, "payment_id": "", "auth_code": "" } }, "signature": "bRj3VHm1qT1/RRrWrqW9LwxM5C9bTpoTx7Ip...emz2GxIdEyAeC4oA8w==" }
Related topics
The following topics might be useful when implementing payments through Gate:
Testing
General information
You can perform test purchases with the TrueMoney Wallet payment method by using Payment Page and Gate.
To perform test purchases, you'll need the test project ID and the secret key to it. To get them, contact the technical support team at support@monetix.pro.
When performing test payments, keep in mind that:
- your requests must contain the test project ID
- the payment currency that you send in requests can be only THB
- random values may be used as the payment ID and in the parameters with customer information
- the interface of the test checkout page may be different from the production one.
Test payments statuses
To receive one of the following statuses in the callback with the test purchase result, use a particular value for the purchase amount in the request:
- decline—when using
40000
or40400
amount - success—when using any amount other than those mentioned above
Testing purchase by using Payment Page
To perform a test purchase by using Payment Page:
- Send a request for purchase through Payment Page to the payment platform.
- Choose a payment method on the test checkout page. If you've passed the force_payment_method parameter with the
true-money
value in the request, you won't have to choose the payment method. - Click the Success or Decline button (the relevant button will be displayed depending on the amount sent in the request).
- Accept a callback with information about the test purchase result.
- Wait a few seconds until the result of the test purchase is displayed to you on the test checkout page.
See the detailed information about purchase processing through Payment Page in the TrueMoney Wallet payment method in the Purchase by using Payment Page section.
Testing purchase by using Gate
To perform a test purchase by using Gate:
- Send a request for performing a test purchase to the payment platform.
- Accept a callback with redirection data.
- Go to the received URL and click the Success or Decline button (the relevant button will be displayed depending on the amount sent in the request).
- Make sure that the test purchase confirmation page is displayed to you.
- Accept a callback with information about the test payment result.
See the detailed information about purchase processing through Gate in the TrueMoney Wallet payment method in the Purchase by using Gate section.
Analysis of payments results
As with other payment methods Monetix offers, when using this method, you have several options to analyze the information about payments and operations.
You can load and analyze all the necessary information in Dashboard (dash-light.trxhost.com
), for instance you can use the analytic panels in the Analytics section for this purpose.
Also, you can export the information for further analysis by using third party analytical tools. The following options are available:
- Dashboard allows you to download reports in CSV format by using the tools in the Reports section. You can perform export as a one-time or regular download of data to your local computer.
- Data API allows you to have payment information exported in JSON format and delivered to a URL you specify. The payment information is exported by means of sending requests to the /operations/get endpoint.
If you have any further questions regarding payment data analysis, contact Monetix technical support.