Paypal自适应支付每笔交易的并行支付状态

时间:2015-04-20 10:11:25

标签: php paypal paypal-adaptive-payments adaptive-parallel-payment

我主要从Paypal获得两种不同的状态,即自适应支付并行支付为COMPLETE和INCOMPLETE。有问题的是INCOMPLETE。以下是来自$ _POST转储的示例:

array (
    'transaction' => 
    array (
    7 => 'Completed',
    6 => 'false',
    8 => 'INV-MY612341Z44L',
    0 => 'USD 11.11',
    5 => 'Completed',
    3 => 'Completed',
    1 => 'Completed',
    9 => 'USD 10.01',
    2 => '8J716621241U839814X',
    4 => 'Completed',
   ),
  'reverse_all_parallel_payments_on_error' => 'false',
  'ipn_notification_url' => 'myurl',
  'verify_sign' => 'An5n123s1Ksasd2wsqso7MWU-AILx45idIbbLL8PRFiTJ',
  'charset' => 'windows-1254',
  'payment_request_date' => 'Fri Mar 27 09:07:29 PDT 2015',
  'sender_email' => 'paypal@mydomain.com',
  'status' => 'INCOMPLETE',

据我所知,如果并行付款的状态为COMPLETE,我可以安全地将其全部标记为完整,当它不完整时,我很难解析它,因为COMPLETE和INCOMPLETE的每个transaction_id响应之间没有太大区别。 / p>

如何从https://developer.paypal.com/docs/classic/adaptive-payments/integration-guide/APIPN/

获取事务[n] .status_for _sender_txn的整洁响应

交易状态,其中[n]是从0到5的数字。对于简单的单接收方付款,此数字将为0.大于0的数字表示以链接和并行付款方式向特定接收方付款。可能的值有:

COMPLETED – The sender's transaction has completed
PENDING – The transaction is awaiting further processing
CREATED – The payment request was received; ...
PARTIALLY_REFUNDED– Transaction was partially refunded
DENIED – The transaction was rejected by the receiver
PROCESSING – The transaction is in progress
REVERSED – The payment was returned to the sender
REFUNDED – The payment was refunded
FAILED – The payment failed

0 个答案:

没有答案