我正在开发一个自定义模块,可在付款后将以下数据传递到外部系统。
PayPal Express结帐-上次相关ID
PayPal Express结帐-最后交易ID
应该看到sales_order
和sales_order_payment
表。
该信息位于sales_order_payment表的extra_information
select additional_information from sales_order_payment
additional_information: a:11:{s:15:"paypal_payer_id";s:13:"S3N79BW9ASCXQ";s:18:"paypal_payer_email";s:25:"developer-buyer@qooar.com";s:19:"paypal_payer_status";s:8:"verified";s:21:"paypal_correlation_id";s:13:"689b01d290375";s:32:"paypal_express_checkout_payer_id";s:13:"S3N79BW9ASCXQ";s:29:"paypal_express_checkout_token";s:20:"EC-7F776218LS594863N";s:12:"method_title";s:23:"PayPal Express Checkout";s:41:"paypal_express_checkout_redirect_required";N;s:29:"paypal_protection_eligibility";s:10:"Ineligible";s:21:"paypal_payment_status";s:9:"completed";s:21:"paypal_pending_reason";s:4:"None";}
从您的订单对象中,我们可以付款:
$paymentAdditionalInfo = $order->getPayment()->getAdditionalInformation();
// get PayPal express checkout token
$token = $paymentAdditionalInfo['paypal_express_checkout_token'];
// get PayPal correlation ID
$correlationId = $paymentAdditionalInfo['paypal_correlation_id'];