Skip to content

Commit

Permalink
Update field name
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmitchell committed Aug 18, 2021
1 parent 3284c73 commit 318bfd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/OrderManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ public function processPayment($order, array $data)
if (array_get($data, 'pay_from_profile') == 1) {
$result = $paymentMethod->payFromPaymentProfile($order, $data);
}
elseif (array_get($data, 'payment_button') == 1) {
elseif (array_get($data, 'pay_from_payment_button') == 1) {
$result = $paymentMethod->processPaymentButton($data, $paymentMethod, $order);
}
else {
Expand Down

0 comments on commit 318bfd7

Please sign in to comment.