Skip to content

Commit

Permalink
More work on addOrderRecurringTransaction method
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCartpenter committed Jun 4, 2024
1 parent 4265621 commit be5d5c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions upload/catalog/model/extension/payment/paypal.php
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ public function recurringPayment($product_data, $order_data, $paypal_order_data)

if (($transaction_status == 'CREATED') || ($transaction_status == 'COMPLETED') || ($transaction_status == 'PENDING')) {
$order_recurring_transaction_data = array(
'subscription_id' => $subscription_id,
'order_recurring_id' => $subscription_id,
'reference' => $transaction_id,
'type' => '1',
'amount' => $amount
Expand All @@ -477,7 +477,7 @@ public function recurringPayment($product_data, $order_data, $paypal_order_data)
$this->editPayPalOrderRecurringNextPayment($subscription_id, date_format($next_payment, 'Y-m-d H:i:s'));
} else {
$order_recurring_transaction_data = array(
'subscription_id' => $subscription_id,
'order_recurring_id' => $subscription_id,
'reference' => $transaction_id,
'type' => '4',
'amount' => $amount
Expand Down

0 comments on commit be5d5c4

Please sign in to comment.