Skip to content

Instantly share code, notes, and snippets.

@sjtrees
sjtrees / test
Created August 10, 2012 18:14
testtest
sfdsdf
@sjtrees
sjtrees / DoExpressCheckoutPayment_basic_DG_curl.txt
Created June 12, 2012 22:41
DoExpressCheckoutPayment in sandbox for basic digital goods - cURL
Request
-------
Endpoint URL: https://api-3t.sandbox.paypal.com/nvp
HTTP method: POST
POST data:
USER=merchant_user_name
&PWD=merchant_password
&SIGNATURE=merchant_signature
&METHOD=DoExpressCheckoutPayment
&VERSION=89
@sjtrees
sjtrees / GetExpressCheckoutDetails_basic_DG_curl.txt
Created June 12, 2012 22:41
GetExpressCheckoutDetails in sandbox for basic digital goods - cURL
Request
-------
Endpoint URL: https://api-3t.sandbox.paypal.com/nvp
HTTP method: POST
POST data:
USER=merchant_user_name
&PWD=merchant_password
&SIGNATURE=merchant_signature
&METHOD=GetExpressCheckoutDetails
&VERSION=89
@sjtrees
sjtrees / SetExpressCheckout_basic_DG_curl.txt
Created June 12, 2012 22:39
SetExpressCheckout in sandbox for basic digital goods - cURL
Request
-------
Endpoint URL: https://api-3t.sandbox.paypal.com/nvp
HTTP method: POST
POST data:
USER=merchant_user_name
&PWD=merchant_password
&SIGNATURE=merchant_signature
&METHOD=SetExpressCheckout
&VERSION=89
@sjtrees
sjtrees / account_auth_serviceGetAuthDetails_Sandbox
Created May 29, 2012 20:07
Account Authentication Service - GetAuthDetails in sandbox
Request
-------
curl -s --insecure https://api-3t.sandbox.paypal.com/nvp -d "USER=platfo_1255077030_biz_api1.gmail.com&PWD=1255077037&SIGNATURE=Abg0gYcQyxQvnf2HDJkKtA-p6pqhA1k-KTYE0Gcy1diujFio4io5Vqjf&METHOD=GetAuthDetails&VERSION=88&token=HA-Y8EHJTQJ81234"
Response
-------
PAYERID=3TXTXECKF1234&FIRSTNAME=Test&LASTNAME=User&EMAIL=sender_13212312345_per%40yahoo%2ecom&TIMESTAMP=2012%2d05%2d25T21%3a59%3a02Z&CORRELATIONID=8169cc911234&ACK=Success&VERSION=88&BUILD=2860716
@sjtrees
sjtrees / account_auth_serviceGAFP_Sandbox
Created May 29, 2012 20:03
Account Authentication Service - SetAuthFlowParam in sandbox
Request
-------
curl -s --insecure https://api-3t.sandbox.paypal.com/nvp -d "USER=platfo_1255077030_biz_api1.gmail.com&PWD=1255077037&SIGNATURE=Abg0gYcQyxQvnf2HDJkKtA-p6pqhA1k-KTYE0Gcy1diujFio4io5Vqjf&METHOD=SetAuthFlowParam&VERSION=88&returnUrl=http://www.yourdomain.com/success.html&cancelUrl=http://www.yourdomain.com/cancel.html&logoutUrl=http://www.yourdomain.com/logout.html&SERVICENAME1=Name&SERVICEDEFREQ1=Required&SERVICENAME2=Email&SERVICEDEFREQ2=Required"
Response
--------
TOKEN=HA%2dY8EHJTQJ81234&TIMESTAMP=2012%2d05%2d25T21%3a56%3a25Z&CORRELATIONID=10660ce9101ca&ACK=Success&VERSION=88&BUILD=2860716
@sjtrees
sjtrees / AA_BasicCreateAccount_Sandbox
Created May 22, 2012 21:31
Adaptive Accounts - basic CreateAccount operation in Sandbox
HTTP Headers
------------
-H "X-PAYPAL-SECURITY-USERID: insert_developer_user_name"
-H "X-PAYPAL-SECURITY-PASSWORD: insert_developer_password"
-H "X-PAYPAL-SECURITY-SIGNATURE: insert_developer_signature"
-H "X-PAYPAL-REQUEST-DATA-FORMAT: JSON"
-H "X-PAYPAL-RESPONSE-DATA-FORMAT: JSON"
-H "X-PAYPAL-SANDBOX-EMAIL-ADDRESS: insert_developer_sandbox_email_address"
-H "X-PAYPAL-DEVICE-IPADDRESS: 192.0.2.0"
-H "X-PAYPAL-APPLICATION-ID: APP-80W284485P519543T" #Standard Sandbox App ID
@sjtrees
sjtrees / AP_ExecutePayment_AfterDelayedPayment_Sandbox
Created May 18, 2012 19:39
Adaptive Payments - ExecutePayment after delayed chained payment, in Sandbox
HTTP Headers
------------
-H "X-PAYPAL-SECURITY-USERID: insert_developer_user_name"
-H "X-PAYPAL-SECURITY-PASSWORD: insert_developer_password"
-H "X-PAYPAL-SECURITY-SIGNATURE: insert_developer_signature"
-H "X-PAYPAL-REQUEST-DATA-FORMAT: NV"
-H "X-PAYPAL-RESPONSE-DATA-FORMAT: NV"
-H "X-PAYPAL-APPLICATION-ID: APP-80W284485P519543T" #Standard Sandbox App ID
@sjtrees
sjtrees / AP_delayed_chained_payment_PaymentDetails_Sandbox
Created May 18, 2012 19:35
Adaptive Payments - PaymentDetails for delayed chained payment in Sandbox
HTTP Headers
------------
-H "X-PAYPAL-SECURITY-USERID: insert_developer_user_name"
-H "X-PAYPAL-SECURITY-PASSWORD: insert_developer_password"
-H "X-PAYPAL-SECURITY-SIGNATURE: insert_developer_signature"
-H "X-PAYPAL-REQUEST-DATA-FORMAT: NV"
-H "X-PAYPAL-RESPONSE-DATA-FORMAT: NV"
-H "X-PAYPAL-APPLICATION-ID: APP-80W284485P519543T" #Standard Sandbox App ID
Endpoint