Anonymous payment error after return from paypal

Created on 21 February 2024, 10 months ago

Problem/Motivation

https://hopeforelika.com/checkout/6/payment/return?PayerID=AXs6Z22sCBTJG...
If create payment subscription anonymous have php erorr.
Error: Call to a member function id() on null in Drupal\paypal_subscriptions\Plugin\Commerce\PaymentGateway\ExpressCheckoutSubscriptions->doExpressCheckoutDetails() (line 159 of /home/wibeone/hopeforelika.com/web/modules/contrib/paypal_subscriptions/src/Plugin/Commerce/PaymentGateway/ExpressCheckoutSubscriptions.php).

Steps to reproduce

Proposed resolution

Get customer from order.
// Build NVP data for PayPal API request.
$account = User::load($order->getCustomerId());

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇲🇩Moldova pavelculacov Chisinau

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024