PayPal Adaptive Payments - 2012 Guia do Utilizador Página 101

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 298
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 100
Adaptive Payments Developer Guide August 7, 2012 101
Pay API Operation
Pay Examples Using NVP and CURL
Request:
curl -s --insecure
-H "X-PAYPAL-SECURITY-USERID: api_username"
-H "X-PAYPAL-SECURITY-PASSWORD: api_password"
-H "X-PAYPAL-SECURITY-SIGNATURE: api_signature"
-H "X-PAYPAL-REQUEST-DATA-FORMAT: NV"
-H "X-PAYPAL-RESPONSE-DATA-FORMAT: NV"
-H "X-PAYPAL-APPLICATION-ID: app_id"
https://svcs.sandbox.paypal.com/AdaptivePayments/Pay -d
"actionType=PAY
&cancelUrl=http://your_cancel_url
&currencyCode=USD
&feesPayer=EACHRECEIVER
&memo=Parallel-payment-example
&receiverList.receiver(0).amount=100.00
&receiverList.receiver(0).email=receiver1@domain
&receiverList.receiver(0).primary=false
&receiverList.receiver(1).amount=50.00
&receiverList.receiver(1).email=receiver2@domain
&receiverList.receiver(1).primary=false
&requestEnvelope.errorLanguage=en_US
&returnUrl=http://your_return_url
&reverseAllParallelPaymentsOnError=true
&senderEmail=sender@domain
Response:
responseEnvelope.timestamp=2009-07-13T12%3A34%3A29.316-07%3A00
&responseEnvelope.ack=Success
&responseEnvelope.correlationId=d615a365bed61
&responseEnvelope.build=DEV&payKey=AP-1CB41255YH2406602
&paymentExecStatus=CREATED
Chained payment example
In this example, the sender makes a payment of $100 to a PayPal-registered receiver who is
identified as the primary receiver. This receiver sends $50 of the $100 to another PayPal-
registered receiver.
Request:
Vista de página 100
1 2 ... 96 97 98 99 100 101 102 103 104 105 106 ... 297 298

Comentários a estes Manuais

Sem comentários