Skip to content

Commit

Permalink
Merge pull request #1411 from angelleye/PFW-550
Browse files Browse the repository at this point in the history
Woo Subscriptions - Refund Bug, PFW-550
  • Loading branch information
kcppdevelopers committed Jan 29, 2020
2 parents 6905516 + beff93c commit 0f13321
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,9 @@ public function update_payment_status_by_paypal_responce($orderid, $result) {
} elseif (!empty($result['TRANSACTIONTYPE'])) {
$transaction_type = $result['TRANSACTIONTYPE'];
}
if (!empty($result['PAYMENTINFO_0_TRANSACTIONID'])) {
if(!empty($result['TRANSACTIONID'])) {
$transaction_id = $result['TRANSACTIONID'];
} elseif (!empty($result['PAYMENTINFO_0_TRANSACTIONID'])) {
$transaction_id = $result['PAYMENTINFO_0_TRANSACTIONID'];
} elseif (!empty($result['BILLINGAGREEMENTID'])) {
$transaction_id = $result['BILLINGAGREEMENTID'];
Expand Down

0 comments on commit 0f13321

Please sign in to comment.