Created
May 8, 2014 12:53
-
-
Save brendo/00cb34d4969e54f0e963 to your computer and use it in GitHub Desktop.
This file contains 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
// Original | |
PayPal\Core\PPHttpConnection: Connecting to https://api.sandbox.paypal.com/v1/payments/payment/PAY-3R545450RU530944LKNVWV3I | |
PayPal\Core\PPHttpConnection: Payload | |
PayPal\Core\PPHttpConnection: Adding header Content-Type: application/json | |
PayPal\Core\PPHttpConnection: Adding header User-Agent: PayPalSDK/rest-sdk-php 0.6.0 (lang=PHP;v=5.5.12;bit=64;os=Darwin_13.1.0;machine=x86_64;openssl=0.9.8y;curl=7.30.0) | |
PayPal\Core\PPHttpConnection: Adding header Authorization: Bearer rHgQ9VP9mNc-c8l5LpibstMVNKd4dkBUa2FW1K-bD.Y | |
PayPal\Transport\PPRestCall: {"id":"PAY-3R545450RU530944LKNVWV3I","create_time":"2014-05-08T11:30:53Z","update_time":"2014-05-08T11:30:53Z","state":"created","intent":"sale","payer":{"payment_method":"paypal","payer_info":{"shipping_address":{}}},"transactions":[{"amount":{"total":"64.95","currency":"AUD","details":{"subtotal":"64.95"}},"description":"Test: Superb Clean","item_list":{"items":[{"name":"2 Bedroom 1 Bathroom Mini Deluxe: Vacuum all carpets Mop and clean all floors Thoroughly clean b","sku":"HOC21M","price":"64.95","currency":"AUD","quantity":"1"}]}}],"links":[{"href":"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3R545450RU530944LKNVWV3I","rel":"self","method":"GET"},{"href":"https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-95E67870TH894135X","rel":"approval_url","method":"REDIRECT"},{"href":"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3R545450RU530944LKNVWV3I/execute","rel":"execute","method":"POST"}]} | |
// Execute | |
PayPal\Core\PPHttpConnection: Connecting to https://api.sandbox.paypal.com/v1/payments/payment/PAY-3R545450RU530944LKNVWV3I/execute | |
PayPal\Core\PPHttpConnection: Payload {"payer_id":"BQWJQE8LHWRDW"} | |
PayPal\Core\PPHttpConnection: Adding header Content-Type: application/json | |
PayPal\Core\PPHttpConnection: Adding header User-Agent: PayPalSDK/rest-sdk-php 0.6.0 (lang=PHP;v=5.5.12;bit=64;os=Darwin_13.1.0;machine=x86_64;openssl=0.9.8y;curl=7.30.0) | |
PayPal\Core\PPHttpConnection: Adding header Authorization: Bearer rHgQ9VP9mNc-c8l5LpibstMVNKd4dkBUa2FW1K-bD.Y | |
PayPal\Core\PPHttpConnection: Adding header PayPal-Request-Id: 213070643381781139954867217404 | |
PayPal\Transport\PPRestCall: {"id":"PAY-3R545450RU530944LKNVWV3I","create_time":"2014-05-08T11:30:53Z","update_time":"2014-05-08T11:31:17Z","state":"pending","intent":"sale","payer":{"payment_method":"paypal","payer_info":{"email":"ben@example.com","first_name":"Ben","last_name":"Carlton","payer_id":"BQWJQE8LHWRDW","shipping_address":{"line1":"1 Cheeseman Ave - East","city":"Melbourne","state":"Victoria","postal_code":"3001","country_code":"AU"}}},"transactions":[{"amount":{"total":"64.95","currency":"AUD","details":{"subtotal":"64.95"}},"description":"Test: Superb Clean","item_list":{"items":[{"name":"2 Bedroom 1 Bathroom Mini Deluxe: Vacuum all carpets Mop and clean all floors Thoroughly clean b","sku":"HOC21M","price":"64.95","currency":"AUD","quantity":"1"}]},"related_resources":[{"sale":{"id":"1P6318456M780961U","create_time":"2014-05-08T11:30:53Z","update_time":"2014-05-08T11:31:17Z","state":"pending","amount":{"total":"64.95","currency":"AUD"},"pending_reason":"multicurrency","parent_payment":"PAY-3R545450RU530944LKNVWV3I","links":[{"href":"https://api.sandbox.paypal.com/v1/payments/sale/1P6318456M780961U","rel":"self","method":"GET"},{"href":"https://api.sandbox.paypal.com/v1/payments/sale/1P6318456M780961U/refund","rel":"refund","method":"POST"},{"href":"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3R545450RU530944LKNVWV3I","rel":"parent_payment","method":"GET"}]}}]}],"links":[{"href":"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3R545450RU530944LKNVWV3I","rel":"self","method":"GET"}]} | |
// Reauth | |
PayPal\Core\PPHttpConnection: Connecting to https://api.sandbox.paypal.com/v1/oauth2/token | |
PayPal\Core\PPHttpConnection: Payload grant_type=client_credentials | |
PayPal\Core\PPHttpConnection: Adding header User-Agent: PayPalSDK/rest-sdk-php 0.6.0 (lang=PHP;v=5.5.12;bit=64;os=Darwin_13.1.0;machine=x86_64;openssl=0.9.8y;curl=7.30.0) | |
PayPal\Core\PPHttpConnection: Adding header Authorization: Basic QVNMaUdSQXh4QkpGUmppQ0ZEMFI0MF8xX0ZEYWthMFAwR19nemI5V0NfcS0xdUNYTENFbXozdDUtUmtYOkVINVRBQkRKZnJfNEFYOGtDREhuR0lDQWl4dUlwMXBYdmRnTFNTeFd1UkY5cnVCcHd1U3BsTG9qUVFrZA== | |
PayPal\Core\PPHttpConnection: Adding header Accept: */* | |
// Get Payment | |
PayPal\Core\PPHttpConnection: Connecting to https://api.sandbox.paypal.com/v1/payments/payment/PAY-3R545450RU530944LKNVWV3I | |
PayPal\Core\PPHttpConnection: Payload | |
PayPal\Core\PPHttpConnection: Adding header Content-Type: application/json | |
PayPal\Core\PPHttpConnection: Adding header User-Agent: PayPalSDK/rest-sdk-php 0.6.0 (lang=PHP;v=5.5.12;bit=64;os=Darwin_13.1.0;machine=x86_64;openssl=0.9.8y;curl=7.30.0) | |
PayPal\Core\PPHttpConnection: Adding header Authorization: Bearer cD9XjPrYxvnJ9IKNu-Zjlbx1rMrzQFUnQtoKmtW9McE | |
PayPal\Transport\PPRestCall: {"id":"PAY-3R545450RU530944LKNVWV3I","create_time":"2014-05-08T11:30:53Z","update_time":"2014-05-08T11:31:17Z","state":"pending","intent":"sale","payer":{"payment_method":"paypal","payer_info":{"email":"ben@example.com","first_name":"Ben","last_name":"Carlton","payer_id":"BQWJQE8LHWRDW","shipping_address":{}}},"transactions":[{"amount":{"total":"64.95","currency":"AUD","details":{"subtotal":"64.95"}},"description":"Test: Superb Clean","item_list":{"items":[{"name":"2 Bedroom 1 Bathroom Mini Deluxe: Vacuum all carpets Mop and clean all floors Thoroughly clean b","sku":"HOC21M","price":"64.95","currency":"AUD","quantity":"1"}]},"related_resources":[{"sale":{"id":"1P6318456M780961U","create_time":"2014-05-08T11:30:53Z","update_time":"2014-05-08T11:31:17Z","state":"pending","amount":{"total":"64.95","currency":"AUD"},"pending_reason":"multicurrency","parent_payment":"PAY-3R545450RU530944LKNVWV3I","links":[{"href":"https://api.sandbox.paypal.com/v1/payments/sale/1P6318456M780961U","rel":"self","method":"GET"},{"href":"https://api.sandbox.paypal.com/v1/payments/sale/1P6318456M780961U/refund","rel":"refund","method":"POST"},{"href":"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3R545450RU530944LKNVWV3I","rel":"parent_payment","method":"GET"}]}}]}],"links":[{"href":"https://api.sandbox.paypal.com/v1/payments/payment/PAY-3R545450RU530944LKNVWV3I","rel":"self","method":"GET"}]} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment