This page explains how to add TrueMoney to your existing Web Drop-in integration.
Requirements
| Requirement | Description |
|---|---|
| Integration type | Make sure that you have built your Web Drop-in integration. |
| Setup steps | Before you begin, add TrueMoney in your test Customer Area. |
API reference
You do not need to send additional fields for TrueMoney. To see optional fields that you can send for all payment methods, choose the endpoint you integrated:
- /sessions: This is the default with Drop-in v5.0.0 or later.
- /payments: If you implemented an additional use case.
Drop-in configuration
There are no configuration steps specific to TrueMoney required for Drop-in.
Recurring
TrueMoney supports recurring transactions. To make recurring transactions, you need to:Create a token
To create a token, include in your /payments request:
storePaymentMethod: true- shopperReference: Your unique identifier for the shopper.
This triggers the recurring flow, where the shopper logs in to their TrueMoney account, and then confirms the recurring transaction.
For the recurring flow to be completed, always make the /payments/details request, otherwise the payment method will not be stored.
When the payment has been settled, you receive a recurring.token.created webhook containing:
type: recurring.token.createdshopperReference: your unique identifier for the shopper.eventId: thepspReferenceof the initial payment.storedPaymentMethodId: the token that you need to make recurring payments for this shopper.
Make sure that your server is able to receive the Recurring tokens life cycle events webhook. You can set up this webhook in your Customer Area.
Make a payment with a token
To make a payment with the token, include in your /payments request:
-
paymentMethod.storedPaymentMethodId: ThestoredPaymentMethodIdfrom the recurring.token.created webhook or fromadditionalData.tokenization.storedPaymentMethodIdif you are retrieving the token synchronously.You can also get this value using the /listRecurringDetails endpoint.
-
shopperReference: The unique shopper identifier that you specified when creating the token. -
shopperInteraction: ContAuth -
recurringProcessingModel: Use Subscription for a series of transactions following a fixed time interval or UnscheduledCardOnFile for contracts with non-fixed time interval.
Test and go live
To test successful TrueMoney live payments, you need to use a real mobile number registered with a TrueMoney account.
If you are encountering issues with testing TrueMoney payments, contact our Support Team.
Check the status of TrueMoney test payments in your Customer Area > Payments > Payment list.
Before you can accept live TrueMoney payments, you need to submit a request for TrueMoney in your live Customer Area.