Tokenization
I. Tokenization Configuration
II. Token creation
1
Create customer
{
"address": {
"city": "Asheville",
"country": "US",
"line1": "3968 Fidler Drive",
"line2": "",
"postalCode": "28806",
"state": "North Carolina"
},
"description": "",
"email": "[email protected]",
"firstName": "Mark",
"lastName": "Merrill",
"phone": "2106276464"
}{
"code": "success",
"msg": "success",
"data": {
"id": "cus_1938157433067143170",
"email": "[email protected]",
"firstName": "Mark",
"lastName": "Merrill",
"phone": "2106276464",
"description": "",
"address": {
"city": "Asheville",
"country": "US",
"line1": "3968 Fidler Drive",
"line2": "",
"postalCode": "28806",
"state": "North Carolina"
},
"shipping": null,
"created": "2025-06-26T08:48:35.925Z"
}
}2
Create paymentMethod
{
"billingDetails": {
"address": {
"city": "Asheville",
"country": "US",
"line1": "3968 Fidler Drive",
"line2": "",
"postalCode": "28806",
"state": "North Carolina"
},
"email": "[email protected]",
"firstName": "Mark",
"lastName": "Merrill",
"phone": "2106276464",
"description": ""
},
"card": {
"cardNo": "4242424242424242",
"expMonth": "04",
"expYear": "2028",
"securityCode": "123"
},
"type": "card",
"merchantPaySite": "https://test.com/"
}{
"code": "success",
"msg": "success",
"data": {
"id": "pm_1938159585009336322",
"type": "card",
"billingDetails": {
"firstName": "Mark",
"lastName": "Merrill",
"phone": "2106276464",
"email": "[email protected]",
"address": {
"city": "Asheville",
"country": "US",
"line1": "3968 Fidler Drive",
"line2": "",
"postalCode": "28806",
"state": "North Carolina"
}
},
"created": "2025-06-26T08:57:08.987Z",
"customerId": null,
"card": {
"brand": "Visa",
"country": "GB",
"expMonth": "04",
"expYear": "2028",
"fingerprint": "KB2kvSZ3i2un0lmfwIc873kvRJJem4AAEvA/fo3HPPo=",
"last4": "4242",
"tokenType": null
},
"boleto": null,
"pix": null,
"creditCardBrazil": null
}
}3
Create Payment
{
"amount":"1000",
"confirmationMethod": "automatic",
"currency": "USD",
"customerId": "cus_1938157433067143170",
"description": "test tokenization",
"ip": "192.168.3.1",
"confirm": "true",
"lineItems": [
{
"amount": 10,
"currency": "USD",
"description": "test tokenization",
"images": ["https://payment.moneycollect.com/static/img/checkout_platforms.e4491f3.png"],
"name": "test",
"quantity": 1
}
],
"notifyUrl": "https://www.moneycollect.com/services/v1/callResult",
"orderNo": "47598388037375697",
"paymentMethod":"pm_1938159585009336322",
"preAuth": "n",
"receiptEmail": "[email protected]",
"returnUrl": "https://www.moneycollect.com/services/v1/redirectResultTest?bankCode=TestBankCode",
"setupFutureUsage": "on",
"statementDescriptor": "TEST",
"statementDescriptorSuffix": "",
"website": "https://test.com/"
}{
"code": "success",
"msg": "success",
"data": {
"id": "pt_1938161587181322242",
"amount": "1000",
"currency": "USD",
"confirmationMethod": "automatic",
"customerId": "cus_1938157433067143170",
"description": "test tokenization",
"paymentMethod": "pm_1938159585009336322",
"paymentMethodTypes": [
"card"
],
"paymentMethodType": "card",
"receiptEmail": "[email protected]",
"setupFutureUsage": "on",
"orderNo": "47598388037375697",
"notifyUrl": "https://www.moneycollect.com/services/v1/callResult",
"returnUrl": "https://moneycollect.com/services/v1/redirectResultTest?bankCode=TestBankCode",
"website": "https://test.com/",
"ip": "192.168.3.1",
"preAuth": "n",
"statementDescriptor": "TEST",
"clientSecret": "pt_1938161587181322242_secret_564C4368F6A6523E5E8099C88E549FB7",
"canceledAt": null,
"cancellationReason": null,
"amountReceived": "0",
"amountCapturable": "0",
"created": "2025-06-26T09:05:06.346Z",
"riskInfo": {
"riskScore": 0,
"riskMessage": "risk_pass"
},
"status": "succeeded",
"displayStatus": "succeeded",
"errorCode": null,
"errorMessage": null,
"invoiceId": null,
"fromChannel": null,
"use3D": false
}
}III. CIT scenarios
Use tokens for payments in future cardholder-initiated transaction
IV. MIT scenarios
Use tokens for payments in future merchant-initiated transaction
Last updated