This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| HTTP Headers | |
| ------------ | |
| -H "X-PAYPAL-SECURITY-USERID: <Caller-UID>" # UserID from the Caller account | |
| -H "X-PAYPAL-SECURITY-PASSWORD: <Caller-Pswd>" # Password from the Caller account | |
| -H "X-PAYPAL-SECURITY-SIGNATURE: <Caller-Sig>" # Signature from the Caller account | |
| -H "X-PAYPAL-REQUEST-DATA-FORMAT: JSON" | |
| -H "X-PAYPAL-RESPONSE-DATA-FORMAT: JSON" | |
| -H "X-PAYPAL-SANDBOX-EMAIL-ADDRESS: <Caller-Sandbox-edress>" | |
| -H "X-PAYPAL-DEVICE-IPADDRESS: 192.0.2.0" | |
| -H "X-PAYPAL-APPLICATION-ID: APP-80W284485P519543T" # Standard Sandbox App ID |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Request | |
| ------- | |
| Endpoint URL: https://api-3t.sandbox.paypal.com/nvp | |
| HTTP method: POST | |
| POST data: | |
| USER=insert_merchant_user_name_here | |
| &PWD=insert_merchant_password_here | |
| &SIGNATURE=insert_merchant_signature_value_here | |
| &METHOD=CreateRecurringPaymentsProfile | |
| &VERSION=86 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| HTTP Headers | |
| ------------ | |
| -H "X-PAYPAL-SECURITY-USERID: insert_developer_user_name_here" | |
| -H "X-PAYPAL-SECURITY-PASSWORD: insert_developer_password_here" | |
| -H "X-PAYPAL-SECURITY-SIGNATURE: insert_developer_signature_here" | |
| -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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| HTTP Headers | |
| ------------ | |
| -H "X-PAYPAL-SECURITY-USERID: insert_developer_user_name_here" | |
| -H "X-PAYPAL-SECURITY-PASSWORD: insert_developer_password_here" | |
| -H "X-PAYPAL-SECURITY-SIGNATURE: insert_developer_signature_here" | |
| -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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Request | |
| ------- | |
| Endpoint URL: https://api-3t.sandbox.paypal.com/nvp | |
| HTTP method: POST | |
| POST data: | |
| USER=insert_merchant_user_name_here | |
| &PWD=insert_merchant_password_here | |
| &SIGNATURE=insert_merchant_signature_value_here | |
| &METHOD=CreateRecurringPaymentsProfile | |
| &PROFILESTARTDATE=2012-05-11T00:00:00Z #Billing date start, in UTC/GMT format |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Request | |
| ------- | |
| Endpoint URL: https://api-3t.sandbox.paypal.com/nvp | |
| HTTP method: POST | |
| POST data: | |
| USER=insert_merchant_user_name_here | |
| &PWD=insert_merchant_password_here | |
| &SIGNATURE=insert_merchant_signature_value_here | |
| &METHOD=CreateBillingAgreement | |
| &VERSION=86 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Request | |
| ------- | |
| Endpoint URL: https://api-3t.sandbox.paypal.com/nvp | |
| HTTP method: POST | |
| POST data: | |
| USER=insert_merchant_user_name_here | |
| &PWD=insert_merchant_password_here | |
| &SIGNATURE=insert_merchant_signature_value_here | |
| &METHOD=DoExpressCheckoutPayment | |
| &VERSION=86 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Get Access Token | |
| * | |
| * After the user is forwarded back to the application callback (defined in | |
| * the application at devportal.x.com) and the code parameter is available on | |
| * the query string, exchange the code parameter for an access token. | |
| * | |
| */ | |
| public function get_access_token(){ | |
| $code = $_GET['code']; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require_once('services/PayPalApi/PayPalAPIInterfaceServiceService.php'); | |
| /* setup payment details */ | |
| orderTotal = new BasicAmountType( '-your-currency-code-', '-your-amount-'); | |
| $PaymentDetails= new PaymentDetailsType(); | |
| $PaymentDetails->OrderTotal = $orderTotal; | |
| /* create DoExpressCheckout request details */ | |
| $DoECRequestDetails = new DoExpressCheckoutPaymentRequestDetailsType(); | |
| $DoECRequestDetails->PayerID = '-payer-id-from-get-EC-call'; |