mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
Insert voucherify order source id
This commit is contained in:
@@ -29,7 +29,6 @@ class RedeemsVoucherifyVoucher
|
||||
{
|
||||
try {
|
||||
$result = $this->voucherifyClient->redemptions->redeem($redeemVoucherifyVoucherObject->getPromoCode(), [
|
||||
"source_id" => $redeemVoucherifyVoucherObject->getTransactionId(),
|
||||
"customer" => [
|
||||
"source_id" => $redeemVoucherifyVoucherObject->getEmployee()->id,
|
||||
"name" => $redeemVoucherifyVoucherObject->getEmployee()->name,
|
||||
@@ -40,6 +39,7 @@ class RedeemsVoucherifyVoucher
|
||||
]
|
||||
],
|
||||
"order" => [
|
||||
"source_id" => $redeemVoucherifyVoucherObject->getTransactionId(),
|
||||
"amount" => $redeemVoucherifyVoucherObject->getAmount() * 100 //converting it to cents
|
||||
]
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user