Ola
[WD16] Prepayment by PayPal October 23, 2012 01:00PM |
Chris du Toit
Re: [WD16] Prepayment by PayPal October 23, 2012 01:39PM |
Paulo Oliveira
Re: [WD16] Prepayment by PayPal October 23, 2012 01:51PM |
Ola
Re: [WD16] Prepayment by PayPal October 23, 2012 11:25PM |
Chris du Toit
Re: [WD16] Prepayment by PayPal October 24, 2012 12:21PM |
Ola
Re: [WD16] Prepayment by PayPal October 24, 2012 07:51PM |
Ola
Re: [WD16] Prepayment by PayPal October 25, 2012 07:01PM |
1. Obtain the endpoint for the service and environment you are addressing. The Sandbox endpoint for the Invoicing Pay operation is: [api-3t.sandbox.paypal.com] This is the endpoint for a name/value pair in the Sandbox; for other endpoints see API Endpoints. 2. Format the HTTP headers needed to make the call. // Sandbox API credentials for the API Caller account -H "X-PAYPAL-SECURITY-USERID: Sandbox-Caller-User-Id -H "X-PAYPAL-SECURITY-PASSWORD: Sandbox-Caller-Password -H "X-PAYPAL-SECURITY-SIGNATURE: Sandbox-Caller-Security-Signature // Global Sandbox Application ID -H "X-PAYPAL-APPLICATION-ID: APP-5XV204960S3290106" 3. The response contains a timestamp, status, invoice ID, and invoice URL: { "responseEnvelope": { "timestamp": "2011-06-16T:12:30.861-07:00", "ack": "Success", "correlationId": "78733df04b1f0", "build": "1942837" }, "invoiceID": "INV2-C4AK-UU3J-5SCL-9KZY", "invoiceNumber": "1192", "invoiceURL": "invoiceURL" } VoilĂ ! You have created and sent an invoice using the Invoicing API. Try It! curl -s --insecure -H "X-PAYPAL-SECURITY-USERID:caller_1312486258_biz_api1.gmail.com" -H "X-PAYPAL-SECURITY-PASSWORD:1312486294" -H "X-PAYPAL-SECURITY-SIGNATURE:AbtI7HV1xB428VygBUcIhARzxch4AL65.T18CTeylixNNxDZUu0iO87e" -H "X-PAYPAL-REQUEST-DATA-FORMAT:NV" -H "X-PAYPAL-RESPONSE-DATA-FORMAT:JSON" -H "X-PAYPAL-APPLICATION-ID: APP-80W284485P519543T" [svcs.sandbox.paypal.com] -d "requestEnvelope.errorLanguage=en_US&invoice.merchantEmail=caller_1312486258_biz@gmail.com&invoice.payerEmail=sender_1334790586_per@x.com&invoice.currencyCode=USD&invoice.paymentTerms=DueOnReceipt&invoice.itemList.item(0).name=BananaPlant&invoice.itemList.item(0).quantity=1&invoice.itemList.item(0).unitPrice=12"
bosher
Re: [WD16] Prepayment by PayPal October 30, 2012 07:06PM |
Ola (not logged in)
Re: [WD16] Prepayment by PayPal October 30, 2012 08:59PM |