From be5d5c4fdd5c2b5994673cad02c57292b4ce0d33 Mon Sep 17 00:00:00 2001 From: TheCartpenter Date: Mon, 3 Jun 2024 21:53:00 -0400 Subject: [PATCH] More work on addOrderRecurringTransaction method --- upload/catalog/model/extension/payment/paypal.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/upload/catalog/model/extension/payment/paypal.php b/upload/catalog/model/extension/payment/paypal.php index 9c992a3d6..be3197a77 100644 --- a/upload/catalog/model/extension/payment/paypal.php +++ b/upload/catalog/model/extension/payment/paypal.php @@ -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 @@ -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