Skip to content

Commit

Permalink
Merge pull request #9 from SonarSoftwareInc/ab8369-payment_receipt_tr…
Browse files Browse the repository at this point in the history
…igger

AB#8369 Payment receipt trigger
  • Loading branch information
geneccx authored May 20, 2022
2 parents 5422660 + df9c28c commit e795dd8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Controllers/AccountBillingController.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ public function makeCreditCardPayment($accountID, CreditCard $creditCard, $amoun
'country' => $creditCard->getCountry(),
'cvc' => $creditCard->getCvc(),
'payment_tracker_id' => $payment_tracker_id,
'email_payment_receipt' => true,
]);

if ($result->success === true && $saveAndMakeAuto === true)
Expand Down Expand Up @@ -242,6 +243,7 @@ public function makeTokenizedCreditCardPayment(
'country' => $creditCard->getCountry(),
'amount' => trim($amount),
'payment_tracker_id' => $payment_tracker_id,
'email_payment_receipt' => true,
]
);

Expand Down Expand Up @@ -274,6 +276,7 @@ public function makePaymentUsingExistingPaymentMethod($accountID, $paymentMethod
'amount' => trim($amount),
'auto_apply' => true,
'payment_tracker_id' => $payment_tracker_id,
'email_payment_receipt' => true,
]);
}

Expand Down Expand Up @@ -371,7 +374,8 @@ public function storePayPalPayment($accountID, $amount, $transactionID)
{
return $this->httpHelper->post("/accounts/" . intval($accountID) . "/transactions/paypal_payments", [
'amount' => number_format($amount,2,".",""),
'transaction_id' => trim($transactionID)
'transaction_id' => trim($transactionID),
'email_payment_receipt' => true,
]);
}

Expand Down

0 comments on commit e795dd8

Please sign in to comment.