{
"order": {
"invoice_number": "INV-20210118-0001",
"amount": 90000,
"descriptor": "directSALE123456789",
"line_items": [
{
"name": "T-Shirt Red",
"price": 30000,
"quantity": 2
},
{
"name": "Polo Navy",
"price": 30000,
"quantity": 1
},
]
},
"customer": {
"id": "CUST-0001",
"name": "Alisa Mikhailovna",
"email": "alisa_mikhailovna@gmail.com",
"phone": "6285694566147",
"address": "Menara Mulia Lantai 8",
"country": "ID"
},
"three_dsecure": {
"authentication_id": "eb7e72313b491cd73ea10c6354bc96900f08b3e50e66cf3df2fe29580d6ff84e"
},
"payment": {
"type": "INSTALLMENT",
"tenor": "12",
"plan_id": "1232131"
},
"card": {
"token": "243591d7e49f45109961581718c3ef82",
"number": "5573381011111101",
"expiry": "1225",
"cvv": "123",
"save": true
}
}
curl --location --request POST '/credit-card/charge' \
--header 'Content-Type: application/json' \
--data-raw '{
"order": {
"invoice_number": "INV-20210118-0001",
"amount": 90000,
"descriptor": "directSALE123456789",
"line_items": [
{
"name": "T-Shirt Red",
"price": 30000,
"quantity": 2
},
{
"name": "Polo Navy",
"price": 30000,
"quantity": 1
},
]
},
"customer": {
"id": "CUST-0001",
"name": "Alisa Mikhailovna",
"email": "alisa_mikhailovna@gmail.com",
"phone": "6285694566147",
"address": "Menara Mulia Lantai 8",
"country": "ID"
},
"three_dsecure": {
"authentication_id": "eb7e72313b491cd73ea10c6354bc96900f08b3e50e66cf3df2fe29580d6ff84e"
},
"payment": {
"type": "INSTALLMENT",
"tenor": "12",
"plan_id": "1232131"
},
"card": {
"token": "243591d7e49f45109961581718c3ef82",
"number": "5573381011111101",
"expiry": "1225",
"cvv": "123",
"save": true
}
}'
{
"order": {
"invoice_number": "INV-20210118-0001",
"amount": 90000
{
"customer": {
"name": "Nadeshiko Kagamihara",
"email": "nadeshiko.kamigahara@yuru.com",
"phone": "085313588532",
"country": "ID",
"address": "Kofu"
},
"payment": {
"type": "SALE",
"identifier": [
{
"name": "Acquirer",
"value": "Mandiri"
},
{
"name": "MID",
"value": "71003372992"
},
{
"name": "TID",
"value": "73120903"
}
],
"request_id": "20201026193843836",
"authorize_id": "",
"response_code": "00",
"response_message": "Approved",
"eci": "05",
"status": "SUCCESS",
"approval_code": "123123"
},
"three_dsecure": {
"authentication_id": "eb7e72313b491cd73ea10c6354bc96900f08b3e50e66cf3df2fe29580d6ff84e"
},
"card": {
"masked": "557338*******101",
"type": "CREDIT",
"issuer": "Bank Mandiri",
"brand": "MASTER",
"token": "243591d7e49f45109961581718c3ef82"
}
}