Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2023-10-26T08:48:34+00:00 INFO Action: Create Order
- 2023-10-26T08:48:34+00:00 INFO Request URL: https://api-m.sandbox.paypal.com/v2/checkout/orders/
- 2023-10-26T08:48:34+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_bAFFkpwoB5TAT
- [amount] => Array
- (
- [currency_code] => USD
- [value] => 100.00
- )
- [invoice_id] => wc_order_bAFFkpwoB5TAT
- [custom_id] => wc_order_bAFFkpwoB5TAT
- [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-26T08:48:34+00:00 INFO Response Headers: Array
- (
- [paypal-debug-id] => 347da515ab2a4
- )
- 2023-10-26T08:48:34+00:00 INFO Response Body: Array
- (
- [id] => 7P114790WN6540317
- [intent] => AUTHORIZE
- [status] => CREATED
- [purchase_units] => Array
- (
- [0] => Array
- (
- [reference_id] => wc_order_bAFFkpwoB5TAT
- [amount] => Array
- (
- [currency_code] => USD
- [value] => 100.00
- )
- [payee] => Array
- (
- [merchant_id] => K75H4EE58B5FL
- )
- [custom_id] => wc_order_bAFFkpwoB5TAT
- [invoice_id] => wc_order_bAFFkpwoB5TAT
- [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-26T08:48:34Z
- [links] => Array
- (
- [0] => Array
- (
- [href] => https://api.sandbox.paypal.com/v2/checkout/orders/7P114790WN6540317
- [rel] => self
- [method] => GET
- )
- [1] => Array
- (
- [href] => https://www.sandbox.paypal.com/checkoutnow?token=7P114790WN6540317
- [rel] => approve
- [method] => GET
- )
- [2] => Array
- (
- [href] => https://api.sandbox.paypal.com/v2/checkout/orders/7P114790WN6540317
- [rel] => update
- [method] => PATCH
- )
- [3] => Array
- (
- [href] => https://api.sandbox.paypal.com/v2/checkout/orders/7P114790WN6540317/authorize
- [rel] => authorize
- [method] => POST
- )
- )
- )
- 2023-10-26T08:48:49+00:00 INFO Action: Update Order
- 2023-10-26T08:48:49+00:00 INFO Request URL: https://api-m.sandbox.paypal.com/v2/checkout/orders/7P114790WN6540317
- 2023-10-26T08:48:49+00:00 INFO Request Body: Array
- (
- [0] => Array
- (
- [op] => replace
- [path] => /purchase_units/@reference_id=='wc_order_bAFFkpwoB5TAT'
- [value] => Array
- (
- [reference_id] => wc_order_bAFFkpwoB5TAT
- [soft_descriptor] => PPCP
- [amount] => Array
- (
- [currency_code] => USD
- [value] => 100.00
- )
- [invoice_id] => WC-PPCP-fmmkeb386
- [custom_id] => WC-PPCP-fmmkeb386
- [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-26T08:48:49+00:00 INFO Response Headers: Array
- (
- [paypal-debug-id] => f1af42b2943ca
- )
- 2023-10-26T08:48:49+00:00 INFO Response Body: Array
- (
- [status] => 1
- [body] =>
- [headers] => Array
- (
- [paypal-debug-id] => f1af42b2943ca
- )
- [statusCode] => 204
- )
- 2023-10-26T08:48:53+00:00 INFO Action: Authorize Order
- 2023-10-26T08:48:53+00:00 INFO Request URL: https://api-m.sandbox.paypal.com/v2/checkout/orders/7P114790WN6540317/authorize
- 2023-10-26T08:48:53+00:00 INFO Response Headers: Array
- (
- [paypal-debug-id] => e3f08c69d2c56
- )
- 2023-10-26T08:48:53+00:00 INFO Response Body: Array
- (
- [id] => 7P114790WN6540317
- [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_bAFFkpwoB5TAT
- [amount] => Array
- (
- [currency_code] => USD
- [value] => 100.00
- )
- [payee] => Array
- (
- [email_address] => kcppdevelopers@gmail.com
- [merchant_id] => K75H4EE58B5FL
- )
- [custom_id] => WC-PPCP-fmmkeb386
- [invoice_id] => WC-PPCP-fmmkeb386
- [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] => 6JX90253FF235760X
- [amount] => Array
- (
- [currency_code] => USD
- [value] => 100.00
- )
- [invoice_id] => WC-PPCP-fmmkeb386
- [custom_id] => WC-PPCP-fmmkeb386
- [seller_protection] => Array
- (
- [status] => ELIGIBLE
- [dispute_categories] => Array
- (
- [0] => ITEM_NOT_RECEIVED
- [1] => UNAUTHORIZED_TRANSACTION
- )
- )
- [expiration_time] => 2023-11-24T08:48:53Z
- [links] => Array
- (
- [0] => Array
- (
- [href] => https://api.sandbox.paypal.com/v2/payments/authorizations/6JX90253FF235760X
- [rel] => self
- [method] => GET
- )
- [1] => Array
- (
- [href] => https://api.sandbox.paypal.com/v2/payments/authorizations/6JX90253FF235760X/capture
- [rel] => capture
- [method] => POST
- )
- [2] => Array
- (
- [href] => https://api.sandbox.paypal.com/v2/payments/authorizations/6JX90253FF235760X/void
- [rel] => void
- [method] => POST
- )
- [3] => Array
- (
- [href] => https://api.sandbox.paypal.com/v2/checkout/orders/7P114790WN6540317
- [rel] => up
- [method] => GET
- )
- )
- [create_time] => 2023-10-26T08:48:53Z
- [update_time] => 2023-10-26T08:48:53Z
- )
- )
- )
- )
- )
- [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-26T08:48:34Z
- [update_time] => 2023-10-26T08:48:53Z
- [links] => Array
- (
- [0] => Array
- (
- [href] => https://api.sandbox.paypal.com/v2/checkout/orders/7P114790WN6540317
- [rel] => self
- [method] => GET
- )
- )
- )
- 2023-10-26T08:49:20+00:00 INFO Action: Capture Authorized
- 2023-10-26T08:49:20+00:00 INFO Request URL: https://api-m.sandbox.paypal.com/v2/payments/authorizations/6JX90253FF235760X/capture
- 2023-10-26T08:49:20+00:00 INFO Request Body: Array
- (
- [amount] => Array
- (
- [value] => 2.00
- [currency_code] => USD
- )
- [payment_instruction] => Array
- (
- [payee] => Array
- (
- [merchant_id] => K75H4EE58B5FL
- )
- )
- [invoice_id] => WC-PPCP-fmmkeb386
- [final_capture] =>
- )
- 2023-10-26T08:49:20+00:00 INFO Response Headers: Array
- (
- [paypal-debug-id] => ca641d777ed38
- )
- 2023-10-26T08:49:20+00:00 INFO Response Body: Array
- (
- [id] => 6Y389525BK084874H
- [amount] => Array
- (
- [currency_code] => USD
- [value] => 2.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] => 2.00
- )
- [paypal_fee] => Array
- (
- [currency_code] => USD
- [value] => 0.56
- )
- [platform_fees] => Array
- (
- [0] => Array
- (
- [amount] => Array
- (
- [currency_code] => USD
- [value] => 0.01
- )
- [payee] => Array
- (
- [merchant_id] => B82TS7QWRJ6TS
- )
- )
- )
- [net_amount] => Array
- (
- [currency_code] => USD
- [value] => 1.43
- )
- )
- [invoice_id] => WC-PPCP-fmmkeb386
- [custom_id] => WC-PPCP-fmmkeb386
- [status] => COMPLETED
- [payee] => Array
- (
- [email_address] => kcppdevelopers@gmail.com
- [merchant_id] => K75H4EE58B5FL
- )
- [create_time] => 2023-10-26T08:49:20Z
- [update_time] => 2023-10-26T08:49:20Z
- [links] => Array
- (
- [0] => Array
- (
- [href] => https://api.sandbox.paypal.com/v2/payments/captures/6Y389525BK084874H
- [rel] => self
- [method] => GET
- )
- [1] => Array
- (
- [href] => https://api.sandbox.paypal.com/v2/payments/captures/6Y389525BK084874H/refund
- [rel] => refund
- [method] => POST
- )
- [2] => Array
- (
- [href] => https://api.sandbox.paypal.com/v2/payments/authorizations/6JX90253FF235760X
- [rel] => up
- [method] => GET
- )
- )
- )
- 2023-10-26T08:49:47+00:00 INFO Action: Capture Authorized
- 2023-10-26T08:49:47+00:00 INFO Request URL: https://api-m.sandbox.paypal.com/v2/payments/authorizations/6JX90253FF235760X/capture
- 2023-10-26T08:49:47+00:00 INFO Request Body: Array
- (
- [amount] => Array
- (
- [value] => 100.00
- [currency_code] => USD
- )
- [payment_instruction] => Array
- (
- [payee] => Array
- (
- [merchant_id] => K75H4EE58B5FL
- )
- )
- [invoice_id] => WC-PPCP-fmmkeb386
- [final_capture] =>
- )
- 2023-10-26T08:49:47+00:00 INFO Response Headers: Array
- (
- [paypal-debug-id] => 827b30a831aa0
- )
- 2023-10-26T08:49:47+00:00 INFO Response Body: Array
- (
- [id] => 2KT17577L5874182M
- [amount] => Array
- (
- [currency_code] => USD
- [value] => 100.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] => 100.00
- )
- [paypal_fee] => Array
- (
- [currency_code] => USD
- [value] => 3.98
- )
- [platform_fees] => Array
- (
- [0] => Array
- (
- [amount] => Array
- (
- [currency_code] => USD
- [value] => 0.10
- )
- [payee] => Array
- (
- [merchant_id] => B82TS7QWRJ6TS
- )
- )
- )
- [net_amount] => Array
- (
- [currency_code] => USD
- [value] => 95.92
- )
- )
- [invoice_id] => WC-PPCP-fmmkeb386
- [custom_id] => WC-PPCP-fmmkeb386
- [status] => COMPLETED
- [payee] => Array
- (
- [email_address] => kcppdevelopers@gmail.com
- [merchant_id] => K75H4EE58B5FL
- )
- [create_time] => 2023-10-26T08:49:46Z
- [update_time] => 2023-10-26T08:49:46Z
- [links] => Array
- (
- [0] => Array
- (
- [href] => https://api.sandbox.paypal.com/v2/payments/captures/2KT17577L5874182M
- [rel] => self
- [method] => GET
- )
- [1] => Array
- (
- [href] => https://api.sandbox.paypal.com/v2/payments/captures/2KT17577L5874182M/refund
- [rel] => refund
- [method] => POST
- )
- [2] => Array
- (
- [href] => https://api.sandbox.paypal.com/v2/payments/authorizations/6JX90253FF235760X
- [rel] => up
- [method] => GET
- )
- )
- )
- 2023-10-26T08:49:57+00:00 INFO Action: Get Capture
- 2023-10-26T08:49:57+00:00 INFO Request URL: https://api-m.sandbox.paypal.com/v2/payments/captures/6Y389525BK084874H
- 2023-10-26T08:49:57+00:00 INFO Response Headers: Array
- (
- [paypal-debug-id] => 8f145731d301b
- )
- 2023-10-26T08:49:57+00:00 INFO Response Body: Array
- (
- [id] => 6Y389525BK084874H
- [amount] => Array
- (
- [currency_code] => USD
- [value] => 2.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] => 2.00
- )
- [paypal_fee] => Array
- (
- [currency_code] => USD
- [value] => 0.56
- )
- [platform_fees] => Array
- (
- [0] => Array
- (
- [amount] => Array
- (
- [currency_code] => USD
- [value] => 0.01
- )
- [payee] => Array
- (
- [merchant_id] => B82TS7QWRJ6TS
- )
- )
- )
- [net_amount] => Array
- (
- [currency_code] => USD
- [value] => 1.43
- )
- )
- [invoice_id] => WC-PPCP-fmmkeb386
- [custom_id] => WC-PPCP-fmmkeb386
- [status] => COMPLETED
- [supplementary_data] => Array
- (
- [related_ids] => Array
- (
- [order_id] => 7P114790WN6540317
- [authorization_id] => 6JX90253FF235760X
- )
- )
- [payee] => Array
- (
- [email_address] => kcppdevelopers@gmail.com
- [merchant_id] => K75H4EE58B5FL
- )
- [create_time] => 2023-10-26T08:49:20Z
- [update_time] => 2023-10-26T08:49:20Z
- [links] => Array
- (
- [0] => Array
- (
- [href] => https://api.sandbox.paypal.com/v2/payments/captures/6Y389525BK084874H
- [rel] => self
- [method] => GET
- )
- [1] => Array
- (
- [href] => https://api.sandbox.paypal.com/v2/payments/captures/6Y389525BK084874H/refund
- [rel] => refund
- [method] => POST
- )
- [2] => Array
- (
- [href] => https://api.sandbox.paypal.com/v2/payments/authorizations/6JX90253FF235760X
- [rel] => up
- [method] => GET
- )
- )
- )
- 2023-10-26T08:50:13+00:00 INFO Action: Refund Order
- 2023-10-26T08:50:13+00:00 INFO Request URL: https://api-m.sandbox.paypal.com/v2/payments/captures/6Y389525BK084874H/refund
- 2023-10-26T08:50:13+00:00 INFO Request Body: Array
- (
- [note_to_payer] => Refund
- [amount] => Array
- (
- [value] => 2.00
- [currency_code] => USD
- )
- )
- 2023-10-26T08:50:13+00:00 INFO Response Headers: Array
- (
- [paypal-debug-id] => 3e41f286e6903
- )
- 2023-10-26T08:50:13+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] => 3e41f286e6903
- [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