Insert voucherify order source id

This commit is contained in:
Dillon
2023-07-31 19:17:03 +08:00
parent 0bc501b35d
commit 7cd3dd876c
@@ -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
]
]);