Tokenization Payment API
Use the following URL to submit to our payment window interface through HTML FORM POST method:
Request parameters are parameters that the merchant's system must provide that can be integrated with the system Faspay:
pymt_ind
Varchar(20)
M
Specify the payment indicator to be used for tokenization transaction. The payment indicator is used as the key identifier to set certain indication. For tokenization you can fill with: PYMT_IND = “tokenization”
Nb): for all conditions, registration, payment or update card always use PYMT_IND = tokenization.
pymt_criteria
Varchar(20)
C
Specify the payment criteria to be used, together with parameter PYMT_IND. This criteria will be set one the payment indicator had been defined. PYMT_CRITERIA = “payment”
Is for transaction after registration, or update/ add new card.
pymt_token
Varchar(36)
C
This field for data tokens. For transaction payment (after registration transaction) fill this field with token from response payment on registration. Sample token:
“47271385-94F5-410A-9890-09CBB77F2A66”
You can store on your database for mapped with a user ID that is registered in the merchant system.
{
"transaction_type": 1,
"response_type": 2,
"merchant_id": "mpgs_purchase",
"payment_method": 1,
"merchant_tranid": "TKN107",
"currency_code": "IDR",
"amount": "10000.00",
"custname": "Suga",
"custemail": "johndoe@gmail.com",
"description": "Payment transaction",
"return_url": "https://faspay.co.id/stack/post_fpg/result.php",
"billing_address": "Pintu air",
"billing_address_city": "Jakarta",
"billing_address_region": "Jakarta",
"billing_address_state": "DKI Jakarta",
"billing_address_poscode": "10710",
"billing_address_country_code": "ID",
"phone_no": "086999686868",
"style_image_url": "https:// https://cardpayment-sandbox.faspay.co.id/payment/_assets/images/payment/newtemplate/faspaylogo.png",
"callback_url": "https://store.faspay.co.id/stack/post_fpg/result.php",
"signature": "TBQsS7Cj9gJb7QfW1w5vu6E1n25mxPw34AW5FqMG4Ww="
"pymt_ind": "tokenization",
"pymt_criteria": "payment",
"pymt_token": "5d9b11c5-3969-4831-8c5e-812f0051ab07"
}Credit Card Tokenization Payment Response:
Following are the standard parameters that the payment result will pass back as a response for credit card payments. Transaction request that has insufficient parameters or incorrect values, will be rejected by Faspay e-Payment and not stored in the system. Same as standard transactions, tokenization transactions will receive parameters like TXN_STATUS and others, for tokenization if the transaction succeeds Faspay will send the token on the return URL and callback merchant. Additional response parameters for tokenization :
pymt_token
Varchar (40)
C
Faspay will send the token ID if the transaction success by return URL and Callback merchant.
Sample token :
“47271385-94F5-410A-9890-09CBB77F2A66”
Last updated