Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2023-10-26T07:12:06+00:00 INFO Action: Create Order
- 2023-10-26T07:12:06+00:00 INFO Request URL: https://api-m.sandbox.paypal.com/v2/checkout/orders/
- 2023-10-26T07:12:06+00:00 INFO Request Body: Array
- (
- [intent] => AUTHORIZE
- [application_context] => Array
- (
- [brand_name] => PPCP
- [locale] => en-US
- [landing_page] => NO_PREFERENCE
- [shipping_preference] => GET_FROM_FILE
- [user_action] => CONTINUE
- )
- [payment_method] => Array
- (
- [payee_preferred] => UNRESTRICTED
- )
- [purchase_units] => Array
- (
- [0] => Array
- (
- [reference_id] => wc_order_j1QrTKC0rCLCB
- [amount] => Array
- (
- [currency_code] => USD
- [value] => 100.00
- )
- [invoice_id] => wc_order_j1QrTKC0rCLCB
- [custom_id] => wc_order_j1QrTKC0rCLCB
- [soft_descriptor] => PPCP
- [payee] => Array
- (
- [merchant_id] => K75H4EE58B5FL
- )
- [shipping] => Array
- (
- [name] => Array
- (
- [full_name] => jigneshbhai kaila
- )
- [address] => Array
- (
- [address_line_1] => 416 W 8th St
- [admin_area_2] => Los Angeles
- [admin_area_1] => CA
- [postal_code] => 90014
- [country_code] => US
- )
- )
- )
- )
- [payer] => Array
- (
- [name] => Array
- (
- [given_name] => jignesh
- [surname] => kaila
- )
- [email_address] => angelleye-smart-button@gmail.com
- [phone] => Array
- (
- [phone_type] => HOME
- [phone_number] => Array
- (
- [national_number] => 4085366858
- )
- )
- [address] => Array
- (
- [address_line_1] => 416 W 8th St
- [admin_area_2] => Los Angeles
- [admin_area_1] => CA
- [postal_code] => 90014
- [country_code] => US
- )
- )
- )
- 2023-10-26T07:12:06+00:00 INFO Response Headers: Array
- (
- [paypal-debug-id] => d80672835650b
- )
- 2023-10-26T07:12:06+00:00 INFO Response Body: Array
- (
- [id] => 3KX26509JH592273U
- [intent] => AUTHORIZE
- [status] => CREATED
- [purchase_units] => Array
- (
- [0] => Array
- (
- [reference_id] => wc_order_j1QrTKC0rCLCB
- [amount] => Array
- (
- [currency_code] => USD
- [value] => 100.00
- )
- [payee] => Array
- (
- [merchant_id] => K75H4EE58B5FL
- )
- [custom_id] => wc_order_j1QrTKC0rCLCB
- [invoice_id] => wc_order_j1QrTKC0rCLCB
- [soft_descriptor] => PPCP
- [shipping] => Array
- (
- [name] => Array
- (
- [full_name] => jigneshbhai kaila
- )
- [address] => Array
- (
- [address_line_1] => 416 W 8th St
- [admin_area_2] => Los Angeles
- [admin_area_1] => CA
- [postal_code] => 90014
- [country_code] => US
- )
- )
- )
- )
- [payer] => Array
- (
- [name] => Array
- (
- [given_name] => jignesh
- [surname] => kaila
- )
- [email_address] => angelleye-smart-button@gmail.com
- [phone] => Array
- (
- [phone_type] => HOME
- [phone_number] => Array
- (
- [national_number] => 4085366858
- )
- )
- [address] => Array
- (
- [address_line_1] => 416 W 8th St
- [admin_area_2] => Los Angeles
- [admin_area_1] => CA
- [postal_code] => 90014
- [country_code] => US
- )
- )
- [create_time] => 2023-10-26T07:12:06Z
- [links] => Array
- (
- [0] => Array
- (
- [href] => https://api.sandbox.paypal.com/v2/checkout/orders/3KX26509JH592273U
- [rel] => self
- [method] => GET
- )
- [1] => Array
- (
- [href] => https://www.sandbox.paypal.com/checkoutnow?token=3KX26509JH592273U
- [rel] => approve
- [method] => GET
- )
- [2] => Array
- (
- [href] => https://api.sandbox.paypal.com/v2/checkout/orders/3KX26509JH592273U
- [rel] => update
- [method] => PATCH
- )
- [3] => Array
- (
- [href] => https://api.sandbox.paypal.com/v2/checkout/orders/3KX26509JH592273U/authorize
- [rel] => authorize
- [method] => POST
- )
- )
- )
- 2023-10-26T07:12:21+00:00 INFO Action: Update Order
- 2023-10-26T07:12:21+00:00 INFO Request URL: https://api-m.sandbox.paypal.com/v2/checkout/orders/3KX26509JH592273U
- 2023-10-26T07:12:21+00:00 INFO Request Body: Array
- (
- [0] => Array
- (
- [op] => replace
- [path] => /purchase_units/@reference_id=='wc_order_j1QrTKC0rCLCB'
- [value] => Array
- (
- [reference_id] => wc_order_j1QrTKC0rCLCB
- [soft_descriptor] => PPCP
- [amount] => Array
- (
- [currency_code] => USD
- [value] => 100.00
- )
- [invoice_id] => WC-PPCP-fmmkeb370
- [custom_id] => WC-PPCP-fmmkeb370
- [payee] => Array
- (
- [merchant_id] => K75H4EE58B5FL
- )
- [shipping] => Array
- (
- [name] => Array
- (
- [full_name] => jigneshbhai kaila
- )
- [address] => Array
- (
- [address_line_1] => 416 W 8th St
- [admin_area_2] => Los Angeles
- [admin_area_1] => CA
- [postal_code] => 90014
- [country_code] => US
- )
- )
- )
- )
- [1] => Array
- (
- [op] => replace
- [path] => /intent
- [value] => AUTHORIZE
- )
- )
- 2023-10-26T07:12:21+00:00 INFO Response Headers: Array
- (
- [paypal-debug-id] => d1e9be89871df
- )
- 2023-10-26T07:12:21+00:00 INFO Response Body: Array
- (
- [status] => 1
- [body] =>
- [headers] => Array
- (
- [paypal-debug-id] => d1e9be89871df
- )
- [statusCode] => 204
- [requestId] => e97c06b4_bd52_4df1_9e78_8db2ad4b4698
- )
- 2023-10-26T07:12:26+00:00 INFO Action: Authorize Order
- 2023-10-26T07:12:26+00:00 INFO Request URL: https://api-m.sandbox.paypal.com/v2/checkout/orders/3KX26509JH592273U/authorize
- 2023-10-26T07:12:26+00:00 INFO Response Headers: Array
- (
- [paypal-debug-id] => 1c07289eac3cf
- )
- 2023-10-26T07:12:26+00:00 INFO Response Body: Array
- (
- [id] => 3KX26509JH592273U
- [intent] => AUTHORIZE
- [status] => COMPLETED
- [payment_source] => Array
- (
- [paypal] => Array
- (
- [email_address] => angelleye-smart-button@gmail.com
- [account_id] => EYQ22WLX6GNLY
- [account_status] => VERIFIED
- [name] => Array
- (
- [given_name] => jignesh
- [surname] => kaila
- )
- [phone_number] => Array
- (
- [national_number] => 4085366858
- )
- [address] => Array
- (
- [address_line_1] => 416 W 8th St
- [admin_area_2] => Los Angeles
- [admin_area_1] => CA
- [postal_code] => 90014
- [country_code] => US
- )
- )
- )
- [purchase_units] => Array
- (
- [0] => Array
- (
- [reference_id] => wc_order_j1QrTKC0rCLCB
- [amount] => Array
- (
- [currency_code] => USD
- [value] => 100.00
- )
- [payee] => Array
- (
- [email_address] => kcppdevelopers@gmail.com
- [merchant_id] => K75H4EE58B5FL
- )
- [custom_id] => WC-PPCP-fmmkeb370
- [invoice_id] => WC-PPCP-fmmkeb370
- [shipping] => Array
- (
- [name] => Array
- (
- [full_name] => jigneshbhai kaila
- )
- [address] => Array
- (
- [address_line_1] => 416 W 8th St
- [admin_area_2] => Los Angeles
- [admin_area_1] => CA
- [postal_code] => 90014
- [country_code] => US
- )
- )
- [payments] => Array
- (
- [authorizations] => Array
- (
- [0] => Array
- (
- [status] => CREATED
- [id] => 15242667WC2359403
- [amount] => Array
- (
- [currency_code] => USD
- [value] => 100.00
- )
- [invoice_id] => WC-PPCP-fmmkeb370
- [custom_id] => WC-PPCP-fmmkeb370
- [seller_protection] => Array
- (
- [status] => ELIGIBLE
- [dispute_categories] => Array
- (
- [0] => ITEM_NOT_RECEIVED
- [1] => UNAUTHORIZED_TRANSACTION
- )
- )
- [expiration_time] => 2023-11-24T07:12:25Z
- [links] => Array
- (
- [0] => Array
- (
- [href] => https://api.sandbox.paypal.com/v2/payments/authorizations/15242667WC2359403
- [rel] => self
- [method] => GET
- )
- [1] => Array
- (
- [href] => https://api.sandbox.paypal.com/v2/payments/authorizations/15242667WC2359403/capture
- [rel] => capture
- [method] => POST
- )
- [2] => Array
- (
- [href] => https://api.sandbox.paypal.com/v2/payments/authorizations/15242667WC2359403/void
- [rel] => void
- [method] => POST
- )
- [3] => Array
- (
- [href] => https://api.sandbox.paypal.com/v2/checkout/orders/3KX26509JH592273U
- [rel] => up
- [method] => GET
- )
- )
- [create_time] => 2023-10-26T07:12:25Z
- [update_time] => 2023-10-26T07:12:25Z
- )
- )
- )
- )
- )
- [payer] => Array
- (
- [name] => Array
- (
- [given_name] => jignesh
- [surname] => kaila
- )
- [email_address] => angelleye-smart-button@gmail.com
- [payer_id] => EYQ22WLX6GNLY
- [phone] => Array
- (
- [phone_number] => Array
- (
- [national_number] => 4085366858
- )
- )
- [address] => Array
- (
- [address_line_1] => 416 W 8th St
- [admin_area_2] => Los Angeles
- [admin_area_1] => CA
- [postal_code] => 90014
- [country_code] => US
- )
- )
- [create_time] => 2023-10-26T07:12:06Z
- [update_time] => 2023-10-26T07:12:25Z
- [links] => Array
- (
- [0] => Array
- (
- [href] => https://api.sandbox.paypal.com/v2/checkout/orders/3KX26509JH592273U
- [rel] => self
- [method] => GET
- )
- )
- )
- 2023-10-26T07:13:12+00:00 INFO Action: Capture Authorized
- 2023-10-26T07:13:12+00:00 INFO Request URL: https://api-m.sandbox.paypal.com/v2/payments/authorizations/15242667WC2359403/capture
- 2023-10-26T07:13:12+00:00 INFO Request Body: Array
- (
- [amount] => Array
- (
- [value] => 60.00
- [currency_code] => USD
- )
- [payment_instruction] => Array
- (
- [payee] => Array
- (
- [merchant_id] => K75H4EE58B5FL
- )
- )
- [invoice_id] => WC-PPCP-fmmkeb370
- )
- 2023-10-26T07:13:12+00:00 INFO Response Headers: Array
- (
- [paypal-debug-id] => 223e816485a38
- )
- 2023-10-26T07:13:12+00:00 INFO Response Body: Array
- (
- [id] => 06C42385PD3731446
- [amount] => Array
- (
- [currency_code] => USD
- [value] => 60.00
- )
- [final_capture] =>
- [seller_protection] => Array
- (
- [status] => ELIGIBLE
- [dispute_categories] => Array
- (
- [0] => ITEM_NOT_RECEIVED
- [1] => UNAUTHORIZED_TRANSACTION
- )
- )
- [disbursement_mode] => INSTANT
- [seller_receivable_breakdown] => Array
- (
- [gross_amount] => Array
- (
- [currency_code] => USD
- [value] => 60.00
- )
- [paypal_fee] => Array
- (
- [currency_code] => USD
- [value] => 2.58
- )
- [platform_fees] => Array
- (
- [0] => Array
- (
- [amount] => Array
- (
- [currency_code] => USD
- [value] => 0.06
- )
- [payee] => Array
- (
- [merchant_id] => B82TS7QWRJ6TS
- )
- )
- )
- [net_amount] => Array
- (
- [currency_code] => USD
- [value] => 57.36
- )
- )
- [invoice_id] => WC-PPCP-fmmkeb370
- [custom_id] => WC-PPCP-fmmkeb370
- [status] => COMPLETED
- [payee] => Array
- (
- [email_address] => kcppdevelopers@gmail.com
- [merchant_id] => K75H4EE58B5FL
- )
- [create_time] => 2023-10-26T07:13:12Z
- [update_time] => 2023-10-26T07:13:12Z
- [links] => Array
- (
- [0] => Array
- (
- [href] => https://api.sandbox.paypal.com/v2/payments/captures/06C42385PD3731446
- [rel] => self
- [method] => GET
- )
- [1] => Array
- (
- [href] => https://api.sandbox.paypal.com/v2/payments/captures/06C42385PD3731446/refund
- [rel] => refund
- [method] => POST
- )
- [2] => Array
- (
- [href] => https://api.sandbox.paypal.com/v2/payments/authorizations/15242667WC2359403
- [rel] => up
- [method] => GET
- )
- )
- )
- 2023-10-26T07:13:40+00:00 INFO Action: Capture Authorized
- 2023-10-26T07:13:40+00:00 INFO Request URL: https://api-m.sandbox.paypal.com/v2/payments/authorizations/15242667WC2359403/capture
- 2023-10-26T07:13:40+00:00 INFO Request Body: Array
- (
- [amount] => Array
- (
- [value] => 40.00
- [currency_code] => USD
- )
- [payment_instruction] => Array
- (
- [payee] => Array
- (
- [merchant_id] => K75H4EE58B5FL
- )
- )
- [invoice_id] => WC-PPCP-fmmkeb370
- )
- 2023-10-26T07:13:40+00:00 INFO Response Headers: Array
- (
- [paypal-debug-id] => 6ffe8be3ba8c5
- )
- 2023-10-26T07:13:40+00:00 INFO Response Body: Array
- (
- [id] => 7NA550192K324143M
- [amount] => Array
- (
- [currency_code] => USD
- [value] => 40.00
- )
- [final_capture] => 1
- [seller_protection] => Array
- (
- [status] => ELIGIBLE
- [dispute_categories] => Array
- (
- [0] => ITEM_NOT_RECEIVED
- [1] => UNAUTHORIZED_TRANSACTION
- )
- )
- [disbursement_mode] => INSTANT
- [seller_receivable_breakdown] => Array
- (
- [gross_amount] => Array
- (
- [currency_code] => USD
- [value] => 40.00
- )
- [paypal_fee] => Array
- (
- [currency_code] => USD
- [value] => 1.89
- )
- [platform_fees] => Array
- (
- [0] => Array
- (
- [amount] => Array
- (
- [currency_code] => USD
- [value] => 0.04
- )
- [payee] => Array
- (
- [merchant_id] => B82TS7QWRJ6TS
- )
- )
- )
- [net_amount] => Array
- (
- [currency_code] => USD
- [value] => 38.07
- )
- )
- [invoice_id] => WC-PPCP-fmmkeb370
- [custom_id] => WC-PPCP-fmmkeb370
- [status] => COMPLETED
- [payee] => Array
- (
- [email_address] => kcppdevelopers@gmail.com
- [merchant_id] => K75H4EE58B5FL
- )
- [create_time] => 2023-10-26T07:13:39Z
- [update_time] => 2023-10-26T07:13:39Z
- [links] => Array
- (
- [0] => Array
- (
- [href] => https://api.sandbox.paypal.com/v2/payments/captures/7NA550192K324143M
- [rel] => self
- [method] => GET
- )
- [1] => Array
- (
- [href] => https://api.sandbox.paypal.com/v2/payments/captures/7NA550192K324143M/refund
- [rel] => refund
- [method] => POST
- )
- [2] => Array
- (
- [href] => https://api.sandbox.paypal.com/v2/payments/authorizations/15242667WC2359403
- [rel] => up
- [method] => GET
- )
- )
- )
- 2023-10-26T07:14:08+00:00 INFO Action: Refund Order
- 2023-10-26T07:14:08+00:00 INFO Request URL: https://api-m.sandbox.paypal.com/v2/payments/captures/7NA550192K324143M/refund
- 2023-10-26T07:14:08+00:00 INFO Request Body: Array
- (
- [note_to_payer] => Refund
- [amount] => Array
- (
- [value] => 40.00
- [currency_code] => USD
- )
- )
- 2023-10-26T07:14:08+00:00 INFO Response Headers: Array
- (
- [paypal-debug-id] => 89328d1b421ee
- )
- 2023-10-26T07:14:08+00:00 INFO Response Body: Array
- (
- [name] => UNPROCESSABLE_ENTITY
- [message] => The requested action could not be performed, semantically incorrect, or failed business validation.
- [debug_id] => 89328d1b421ee
- [details] => Array
- (
- [0] => Array
- (
- [issue] => PLATFORM_FEE_EXCEEDED
- [description] => Platform fee amount specified exceeds the amount that is available for refund. You can only refund up to the available platform fee amount. This error is also returned when no platform_fee was specified or was zero when the payment was captured.
- )
- )
- [links] => Array
- (
- [0] => Array
- (
- [href] => https://developer.paypal.com/docs/api/payments/v2/#error-PLATFORM_FEE_EXCEEDED
- [rel] => information_link
- )
- )
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement