php - 自适应支付 paypal - 支付 api 操作没有 pdt 数据

标签 php paypal payment-gateway paypal-adaptive-payments

我正在使用自适应支付 paypal pay api 操作来完成交易,我已经设置了 ipn 和返回 url。我成功地从 paypal 获取 ipn 消息,但没有从 paypal 获取 pdt 数据到我的返回 url,我不确定为什么我没有从 paypal 获取数据,我已经在我的 paypal 配置文件设置中打开了 pdt 和自动返回

 $PayRequestFields = array(
                                'ActionType' => 'PAY',                              // Required.  Whether the request pays the receiver or whether the request is set up to create a payment request, but not fulfill the payment until the ExecutePayment is called.  Values are:  PAY, CREATE, PAY_PRIMARY
                                'CancelURL' => site_url('paypal/adaptive_payments/pay_cancel'),                                     // Required.  The URL to which the sender's browser is redirected if the sender cancels the approval for the payment after logging in to paypal.com.  1024 char max.
                                'CurrencyCode' => 'USD',                                // Required.  3 character currency code.
                                'FeesPayer' => '',                                  // The payer of the fees.  Values are:  SENDER, PRIMARYRECEIVER, EACHRECEIVER, SECONDARYONLY
                                'IPNNotificationURL' => 'http://mysite.com/dev/wallet/ipn_update',                      // The URL to which you want all IPN messages for this payment to be sent.  1024 char max.
                                'Memo' => '',                                       // A note associated with the payment (text, not HTML).  1000 char max
                                'Pin' => '',                                        // The sener's personal id number, which was specified when the sender signed up for the preapproval
                                'PreapprovalKey' => '',                             // The key associated with a preapproval for this payment.  The preapproval is required if this is a preapproved payment.  
                                'ReturnURL' => 'http://mysite.prystino.com/dev/wallet/pdt_update',                                  // Required.  The URL to which the sener's browser is redirected after approvaing a payment on paypal.com.  1024 char max.
                                'ReverseAllParallelPaymentsOnError' => '',          // Whether to reverse paralel payments if an error occurs with a payment.  Values are:  TRUE, FALSE
                                'SenderEmail' => '',                                // Sender's email address.  127 char max.
                                'TrackingID' => ''                                  // Unique ID that you specify to track the payment.  127 char max.
                                );

最佳答案

支付数据传输 (PDT) 不适用于自适应支付。 PDT 仅适用于 Payments Standard。

关于php - 自适应支付 paypal - 支付 api 操作没有 pdt 数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17502185/

相关文章:

php - (新手)无法使用 laravel 框架在站点上运行 PHP

php - 显示数据库中存储的 url 中的照片

php - Paypal 方法是否可以进行零金额交易?

ios - 通过 apple pay 分摊/延期付款

paypal - Drupal Commerce PayPal Payflow Pro 模块

php - MYSQL 按喜欢/不喜欢和受欢迎程度排序

php - 订阅后使用 IPN 获取 PROFILEID

ios - 如何为PayPal自适应(MPL)付款进行服务器验证

paypal - 询问 : How to get recurring test account on PayPal Payment Pro/PayFlow?

php - 使用 Javascript 和 PHP 通过下拉表单在网页上加载 Google map