EN | ID
Can we implement discount or voucher?

Yes. We recommend you to use ‘item’ parameter for discount or voucher when sending payment request to us.

Here below is a simple example:

[Item name] / item = 100.000
Voucher / Item = -50.000
Gross Amount = 50.000

Here is what look like in code :

................................

$item1_details = array(
'id' => 'a1',
'price' => 25000,
'quantity' => 2,
'name' => "Apple"
);

$item2_details = array(
'id' => 'a2',
'price' => 50000,
'quantity' => 1,
'name' => "Orange"
);

$item3_details = array(
'id' => 'a3',
'price' => -50000,
'quantity' => 1,
'name' => "Voucher"
);

$item_details = array ($item1_details, $item2_details, $item3_details);

................................

 

 

Was this article helpful?
0 out of 0 found this helpful
Can't find your answer? How about looking at our Tech Docs? LEARN MORE