{
"order": {
"amount": 10000
},
"payment": {
"type": "SALE"
},
"card": {
"token": "1614dc147e404f41f6d2de877fda1f94"
},
"three_dsecure": {
"callback_url_success": "http://www.doku.com/success",
"callback_url_failed": "http://www.doku.com/failed"
}
}curl --location '/credit-card/charge' \
--header 'Request-Timestamp: 2020-12-21T07:56:11.000Z' \
--header 'Signature: HMACSHA256=+xey5+Yk8Jzzw5cOrbhArGMtmoDt26+/6KCgIdOiLVg=' \
--header 'Client-Id: BRN-0205-1700537885721' \
--header 'Request-Id: 418075533589' \
--header 'Request-Target: /credit-card/charge' \
--header 'Content-Type: application/json' \
--data '{
"order": {
"amount": 10000
},
"payment": {
"type": "SALE"
},
"card": {
"token": "1614dc147e404f41f6d2de877fda1f94"
},
"three_dsecure": {
"callback_url_success": "http://www.doku.com/success",
"callback_url_failed": "http://www.doku.com/failed"
}
}'{
"order": {
"invoice_number": "INV-0001",
"amount": 10000,
"descriptor": "BIILING-INV-0001",
"currency": "MY"
},
"customer": {
"id": "Test001",
"zip_code": "16455",
"country": "MY",
"name": "DOKU Merchant",
"state": "Malaysia",
"city": "Selangor",
"address": "Selangor, Malaysia",
"phone": "0282938478293",
"email": "merchant@doku.com"
},
"payment": {
"type": "MOTO",
"request_id": "418075533589",
"response_code": "00",
"response_message": "Approved",
"status": "SUCCES",
"approval_code": "112233"
},
"card": {
"token": "536794906625cd02616510faa8460996",
"masked": "557338*******101",
"type": "CREDIT",
"issuer": "OCBC Berhad",
"brand": "VISA"
}
}