Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2022-03-22T12:36:31+00:00 DEBUG POST https://api.sandbox.paypal.com/v2/checkout/orders
- Request Body: {"intent":"AUTHORIZE","purchase_units":[{"reference_id":"default","amount":{"currency_code":"USD","value":"10.00","breakdown":{"item_total":{"currency_code":"USD","value":"10.00"},"shipping":{"currency_code":"USD","value":"0.00"},"tax_total":{"currency_code":"USD","value":"0.00"}}},"description":"","items":[{"name":"$10 Membership Monthly","unit_amount":{"currency_code":"USD","value":"10.00"},"quantity":1,"description":"Become a member of the Bethlehem Food COOP for $10\/month for 30 months.","sku":"","category":"DIGITAL_GOODS","tax":{"currency_code":"USD","value":"0.00"}}],"payee":{"merchant_id":"H8TMF4ZLF6JAEY7C"}}],"application_context":{"user_action":"CONTINUE","shipping_preference":"NO_SHIPPING","landing_page":"LOGIN","locale":"en-US","brand_name":"Bethlehem Food Co-Op","return_url":"https:\/\/www.bethlehemfood.coop\/?wc-ajax=ppc-return-url","cancel_url":"https:\/\/www.bethlehemfood.coop\/checkout\/"},"payer":{"name":{"given_name":"Sane","surname":"Jane"},"email_address":"ituneschris@pixelpaper.net","phone":{"phone_type":"HOME","phone_number":{"national_number":"6104564987"}}},"payment_method":{"payee_preferred":"IMMEDIATE_PAYMENT_REQUIRED","payer_selected":"PAYPAL"}}
- Response Debug ID: 4edbfae197275
- Response: Array
- (
- [code] => 400
- [message] => Bad Request
- )
- Response Body: {"name":"INVALID_REQUEST","message":"Request is not well-formed, syntactically incorrect, or violates schema.","debug_id":"4edbfae197275","details":[{"field":"/purchase_units/@reference_id=='default'/payee/merchant_id","value":"H8TMF4ZLF6JAEY7C","location":"body","issue":"INVALID_STRING_LENGTH","description":"The value of a field is either too short or too long."},{"field":"/purchase_units/@reference_id=='default'/payee/merchant_id","value":"H8TMF4ZLF6JAEY7C","location":"body","issue":"INVALID_PARAMETER_SYNTAX","description":"The value of a field does not conform to the expected format."}],"links":[{"href":"https://developer.paypal.com/docs/api/orders/v2/#error-INVALID_PARAMETER_SYNTAX","rel":"information_link","encType":"application/json"},{"href":"https://developer.paypal.com/docs/api/orders/v2/#error-INVALID_STRING_LENGTH","rel":"information_link","encType":"application/json"}]}
- 2022-03-22T12:36:31+00:00 WARNING Failed to create order. PayPal API response: [INVALID_REQUEST] Request is not well-formed, syntactically incorrect, or violates schema. https://developer.paypal.com/docs/api/orders/v2/#error-INVALID_PARAMETER_SYNTAX https://developer.paypal.com/docs/api/orders/v2/#error-INVALID_STRING_LENGTH
- 2022-03-22T12:36:31+00:00 ERROR Order creation failed: [INVALID_REQUEST] Request is not well-formed, syntactically incorrect, or violates schema. https://developer.paypal.com/docs/api/orders/v2/#error-INVALID_PARAMETER_SYNTAX https://developer.paypal.com/docs/api/orders/v2/#error-INVALID_STRING_LENGTH
- 2022-03-22T12:36:31+00:00 ERROR Order creation failed: [INVALID_REQUEST] Request is not well-formed, syntactically incorrect, or violates schema. https://developer.paypal.com/docs/api/orders/v2/#error-INVALID_PARAMETER_SYNTAX https://developer.paypal.com/docs/api/orders/v2/#error-INVALID_STRING_LENGTH
- 2022-03-22T12:36:59+00:00 DEBUG POST https://api.sandbox.paypal.com/v2/checkout/orders
- Request Body: {"intent":"AUTHORIZE","purchase_units":[{"reference_id":"default","amount":{"currency_code":"USD","value":"10.00","breakdown":{"item_total":{"currency_code":"USD","value":"10.00"},"shipping":{"currency_code":"USD","value":"0.00"},"tax_total":{"currency_code":"USD","value":"0.00"}}},"description":"","items":[{"name":"$10 Membership Monthly","unit_amount":{"currency_code":"USD","value":"10.00"},"quantity":1,"description":"Become a member of the Bethlehem Food COOP for $10\/month for 30 months.","sku":"","category":"DIGITAL_GOODS","tax":{"currency_code":"USD","value":"0.00"}}],"payee":{"merchant_id":"H8TMF4ZLF6JAEY7C"}}],"application_context":{"user_action":"CONTINUE","shipping_preference":"NO_SHIPPING","landing_page":"LOGIN","locale":"en-US","brand_name":"Bethlehem Food Co-Op","return_url":"https:\/\/www.bethlehemfood.coop\/?wc-ajax=ppc-return-url","cancel_url":"https:\/\/www.bethlehemfood.coop\/checkout\/"},"payer":{"name":{"given_name":"Sane","surname":"Jane"},"email_address":"ituneschris@pixelpaper.net","phone":{"phone_type":"HOME","phone_number":{"national_number":"6104564987"}}},"payment_method":{"payee_preferred":"IMMEDIATE_PAYMENT_REQUIRED","payer_selected":"PAYPAL"}}
- Response Debug ID: 97ffce418a9aa
- Response: Array
- (
- [code] => 400
- [message] => Bad Request
- )
- Response Body: {"name":"INVALID_REQUEST","message":"Request is not well-formed, syntactically incorrect, or violates schema.","debug_id":"97ffce418a9aa","details":[{"field":"/purchase_units/@reference_id=='default'/payee/merchant_id","value":"H8TMF4ZLF6JAEY7C","location":"body","issue":"INVALID_STRING_LENGTH","description":"The value of a field is either too short or too long."},{"field":"/purchase_units/@reference_id=='default'/payee/merchant_id","value":"H8TMF4ZLF6JAEY7C","location":"body","issue":"INVALID_PARAMETER_SYNTAX","description":"The value of a field does not conform to the expected format."}],"links":[{"href":"https://developer.paypal.com/docs/api/orders/v2/#error-INVALID_PARAMETER_SYNTAX","rel":"information_link","encType":"application/json"},{"href":"https://developer.paypal.com/docs/api/orders/v2/#error-INVALID_STRING_LENGTH","rel":"information_link","encType":"application/json"}]}
- 2022-03-22T12:36:59+00:00 WARNING Failed to create order. PayPal API response: [INVALID_REQUEST] Request is not well-formed, syntactically incorrect, or violates schema. https://developer.paypal.com/docs/api/orders/v2/#error-INVALID_PARAMETER_SYNTAX https://developer.paypal.com/docs/api/orders/v2/#error-INVALID_STRING_LENGTH
- 2022-03-22T12:36:59+00:00 ERROR Order creation failed: [INVALID_REQUEST] Request is not well-formed, syntactically incorrect, or violates schema. https://developer.paypal.com/docs/api/orders/v2/#error-INVALID_PARAMETER_SYNTAX https://developer.paypal.com/docs/api/orders/v2/#error-INVALID_STRING_LENGTH
- 2022-03-22T12:36:59+00:00 ERROR Order creation failed: [INVALID_REQUEST] Request is not well-formed, syntactically incorrect, or violates schema. https://developer.paypal.com/docs/api/orders/v2/#error-INVALID_PARAMETER_SYNTAX https://developer.paypal.com/docs/api/orders/v2/#error-INVALID_STRING_LENGTH
- 2022-03-22T12:38:56+00:00 DEBUG POST https://api.sandbox.paypal.com/v2/checkout/orders
- Request Body: {"intent":"AUTHORIZE","purchase_units":[{"reference_id":"default","amount":{"currency_code":"USD","value":"10.00","breakdown":{"item_total":{"currency_code":"USD","value":"10.00"},"shipping":{"currency_code":"USD","value":"0.00"},"tax_total":{"currency_code":"USD","value":"0.00"}}},"description":"","items":[{"name":"$10 Membership Monthly","unit_amount":{"currency_code":"USD","value":"10.00"},"quantity":1,"description":"Become a member of the Bethlehem Food COOP for $10\/month for 30 months.","sku":"","category":"DIGITAL_GOODS","tax":{"currency_code":"USD","value":"0.00"}}],"payee":{"merchant_id":"H8TMF4ZLF6JAEY7C"}}],"application_context":{"user_action":"CONTINUE","shipping_preference":"NO_SHIPPING","landing_page":"LOGIN","locale":"en-US","brand_name":"Bethlehem Food Co-Op","return_url":"https:\/\/www.bethlehemfood.coop\/?wc-ajax=ppc-return-url","cancel_url":"https:\/\/www.bethlehemfood.coop\/checkout\/"},"payer":{"name":{"given_name":"Sane","surname":"Jane"},"email_address":"ituneschris@pixelpaper.net","phone":{"phone_type":"HOME","phone_number":{"national_number":"6109998765"}}},"payment_method":{"payee_preferred":"IMMEDIATE_PAYMENT_REQUIRED","payer_selected":"PAYPAL"}}
- Response Debug ID: 6e0ce275c1f2
- Response: Array
- (
- [code] => 400
- [message] => Bad Request
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement