diff --git a/payment/uc_paypal/src/Plugin/Ubercart/PaymentMethod/PayPalWebsitePaymentsPro.php b/payment/uc_paypal/src/Plugin/Ubercart/PaymentMethod/PayPalWebsitePaymentsPro.php index c4511cb..449b14e 100644 --- a/payment/uc_paypal/src/Plugin/Ubercart/PaymentMethod/PayPalWebsitePaymentsPro.php +++ b/payment/uc_paypal/src/Plugin/Ubercart/PaymentMethod/PayPalWebsitePaymentsPro.php @@ -213,7 +213,10 @@ class PayPalWebsitePaymentsPro extends CreditCardPaymentMethodBase { 'success' => TRUE, 'comment' => $this->t('PayPal transaction ID: @transactionid', ['@transactionid' => $nvp_response['TRANSACTIONID']]), 'message' => $message, - 'data' => SafeMarkup::checkPlain($nvp_response['TRANSACTIONID']), + 'data' => [ + 'module' => 'uc_paypal', + 'txn_id' => SafeMarkup::checkPlain($nvp_response['TRANSACTIONID'])->toString(), + ], 'uid' => \Drupal::currentUser()->id(), ];