DANA
Learn about DANA, a digital wallet popular with customers from Indonesia.
Features
Processing currencies | IDR |
---|---|
Settlement currencies | USD |
Minimum transaction amount | 100 IDR |
Maximum transaction amount | 300,000,000 IDR |
Refunds | ✅ |
Partial Refunds | ✅ |
Multiple partial refund | ❌ |
Chargeback | ❌ |
Integration Method
dana
1.
2.
Direct API
Payment flow
1.
2.
3.
How to integration
{
"amount":100,
"currency":"IDR",
"confirm":true,
"payment_method_data" : {
"type":"dana"
},
"return_url":"https://your.website"
}
{
"id": "pi_1646356544343769088",
"object": "payment_intent",
"created": 1681356963000,
"currency": "IDR",
"amount": 100,
"status": "requires_action",
"livemode": true,
"client_secret": "pi_1646356544343769088_secret_m58mCj87dL3cj5JiUOtbdx2e",
"next_action": {
"type": "redirect_to_url",
"dana_handle_redirect": {
"url": "https://XXXXXXXXXXXXXXXXXXX"
}
},
"payment_method_types": [
"dana"
],
"confirmation_method": "automatic",
"return_url": "https://your.website",
"payment_method": "pm_1646356544205357056",
"capture_method": "automatic"
}
Checkout
Payment flow
1.
2.
3.
4.
Create a Session
{
"cancel_url": "www.wooshpay.com",
"mode": "payment",
"success_url": "https://wooshpay.com/",
"payment_method_types": [
"dana"
],
"line_items": [
{
"price_data": {
"currency": "IDR",
"unit_amount": 20000,
"nickname": "apple",
"product_data": {
"name": "apple"
},
"billing_scheme": "testscheme",
"lookup_key": "test_lookup_key"
},
"quantity": 1
}
]
}
{
"id": "cs_1676131330724724736",
"object": "checkout.session",
"created": 1688455825000,
"livemode": false,
"currency": "IDR",
"customer": "",
"mode": "payment",
"status": "open",
"url": "https://checkouttest.wooshpay.com/XXXXXXXXXXXXXXXXXXX",
"cancel_url": "www.wooshpay.com",
"line_items": {
"object": "list",
"data": [
{
"id": "li_1676131330754084864",
"object": "item",
"currency": "IDR",
"description": "apple",
"price": {
"id": "price_1676131330766667776",
"object": "price",
"created": 1688455825000,
"livemode": false,
"active": true,
"currency": "IDR",
"nickname": "apple",
"product": {
"id": "prod_1676131330783444992",
"object": "product",
"created": 1688455825000,
"livemode": false,
"active": true,
"name": "apple",
"updated": 1688455825000
},
"type": "one_time",
"unit_amount": 20000,
"billing_scheme": "per_unit",
"lookup_key": "test_lookup_key"
},
"quantity": 1,
"amount_subtotal": 20000,
"amount_total": 20000
}
]
},
"payment_intent": "pi_1676131330947022848",
"payment_method_types": [
"dana"
],
"payment_status": "unpaid",
"success_url": "https://wooshpay.com/",
"amount_subtotal": 20000,
"amount_total": 20000,
"billing_address_collection": "auto",
"expires_at": 1688542224918,
"payment_link": "",
"client_secret": "pi_1676131330947022848_secret_ENUbfvBKA7zljcENnlrG3K7q"
}
Next step
Create a Webhook
Create a Refund
Modified at 2024-03-11 02:01:50