Partial refunds duplicated
-
I am having a problem with duplicated refunds on my testing, sandboxed site, using the latest version. I have the debug log of a successful refund, followed by a duplicated one. The first one was a complete refund, and the second one was a partial refund.
At 13:46, I paid £40 using PayPal, order #2734
At 13:49, I refunded £40 successfully
At 13:52, I paid £40 using PayPal, order 2736
At 13:54, I refunded £15
At 13:54, I received a refund email showing £15 refunded
At 13:55, I received a second refund email showing two £15 refunds
Admin showed Refund #2738 – 28 November 2021, 1:54pm -£15.00
and Refund #2737 – 28 November 2021, 1:54 pm by Mike Turner -£15.00
and a net payment of £10.
The system report:-### WordPress Environment ### WordPress address (URL): https://test3.mike-turner.uk Site address (URL): https://test3.mike-turner.uk WC Version: 5.9.0 REST API Version: ? 5.9.0 WC Blocks Version: ? 6.1.0 Action Scheduler Version: ? 3.3.0 WC Admin Version: ? 2.8.0 Log Directory Writable: ? WP Version: 5.8.2 WP Multisite: – WP Memory Limit: 1 GB WP Debug Mode: ? WP Cron: – Language: en_GB External object cache: – ### Server Environment ### Server Info: Apache/2.4.41 (Ubuntu) PHP Version: 7.4.25 PHP Post Max Size: 100 MB PHP Time Limit: 30 PHP Max Input Vars: 1000 cURL Version: 7.68.0 OpenSSL/1.1.1f SUHOSIN Installed: – MySQL Version: 8.0.27-0ubuntu0.20.04.1 Max Upload Size: 100 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 5.9.0 WC Database Prefix: mt_ Total Database Size: 22.50MB Database Data Size: 17.29MB Database Index Size: 5.21MB mt_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB mt_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB mt_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB mt_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB mt_woocommerce_order_items: Data: 0.06MB + Index: 0.02MB + Engine InnoDB mt_woocommerce_order_itemmeta: Data: 0.28MB + Index: 0.30MB + Engine InnoDB mt_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB mt_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB mt_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB mt_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB mt_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB mt_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB mt_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB mt_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB mt_actionscheduler_actions: Data: 0.09MB + Index: 0.13MB + Engine InnoDB mt_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB mt_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB mt_actionscheduler_logs: Data: 0.09MB + Index: 0.09MB + Engine InnoDB mt_aiowps_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB mt_aiowps_failed_logins: Data: 0.02MB + Index: 0.00MB + Engine InnoDB mt_aiowps_global_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB mt_aiowps_login_activity: Data: 0.11MB + Index: 0.00MB + Engine InnoDB mt_aiowps_login_lockdown: Data: 0.02MB + Index: 0.00MB + Engine InnoDB mt_aiowps_permanent_block: Data: 0.02MB + Index: 0.00MB + Engine InnoDB mt_cli_cookie_scan: Data: 0.02MB + Index: 0.00MB + Engine InnoDB mt_cli_cookie_scan_categories: Data: 0.02MB + Index: 0.02MB + Engine InnoDB mt_cli_cookie_scan_cookies: Data: 0.02MB + Index: 0.03MB + Engine InnoDB mt_cli_cookie_scan_url: Data: 0.02MB + Index: 0.00MB + Engine InnoDB mt_cli_scripts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB mt_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB mt_comments: Data: 0.19MB + Index: 0.16MB + Engine InnoDB mt_eum_logs: Data: 0.19MB + Index: 0.00MB + Engine InnoDB mt_frm_fields: Data: 0.06MB + Index: 0.03MB + Engine InnoDB mt_frm_forms: Data: 0.02MB + Index: 0.02MB + Engine InnoDB mt_frm_item_metas: Data: 0.06MB + Index: 0.03MB + Engine InnoDB mt_frm_items: Data: 0.05MB + Index: 0.08MB + Engine InnoDB mt_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB mt_ms_snippets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB mt_options: Data: 5.02MB + Index: 0.16MB + Engine InnoDB mt_postmeta: Data: 2.38MB + Index: 1.98MB + Engine InnoDB mt_posts: Data: 5.19MB + Index: 0.41MB + Engine InnoDB mt_redirection_404: Data: 0.02MB + Index: 0.05MB + Engine InnoDB mt_redirection_groups: Data: 0.02MB + Index: 0.03MB + Engine InnoDB mt_redirection_items: Data: 0.02MB + Index: 0.09MB + Engine InnoDB mt_redirection_logs: Data: 0.02MB + Index: 0.05MB + Engine InnoDB mt_sgs_log_events: Data: 0.42MB + Index: 0.00MB + Engine InnoDB mt_sgs_log_visitors: Data: 0.02MB + Index: 0.00MB + Engine InnoDB mt_snippets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB mt_stock_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB mt_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB mt_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB mt_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB mt_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB mt_usermeta: Data: 0.06MB + Index: 0.03MB + Engine InnoDB mt_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB mt_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB mt_wc_admin_notes: Data: 0.05MB + Index: 0.00MB + Engine InnoDB mt_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB mt_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB mt_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB mt_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB mt_wc_order_product_lookup: Data: 0.08MB + Index: 0.06MB + Engine InnoDB mt_wc_order_stats: Data: 0.05MB + Index: 0.05MB + Engine InnoDB mt_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB mt_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB mt_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB mt_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB mt_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB mt_wpmailsmtp_debug_events: Data: 0.02MB + Index: 0.00MB + Engine InnoDB mt_wpmailsmtp_tasks_meta: Data: 0.02MB + Index: 0.00MB + Engine InnoDB mt_yoast_indexable: Data: 1.50MB + Index: 0.31MB + Engine InnoDB mt_yoast_indexable_hierarchy: Data: 0.06MB + Index: 0.05MB + Engine InnoDB mt_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB mt_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB mt_yoast_seo_links: Data: 0.22MB + Index: 0.14MB + Engine InnoDB ### Post Type Counts ### attachment: 392 cookielawinfo: 25 custom_css: 2 customize_changeset: 40 dflip: 1 frm_form_actions: 5 frm_styles: 1 jetpack_migration: 2 ml-slide: 18 ml-slider: 1 nav_menu_item: 39 page: 49 post: 37 product: 14 product_variation: 54 revision: 716 rl_gallery: 5 shop_order: 237 shop_order_refund: 56 tablepress_table: 15 ufaq: 3 wp_block: 1 wpplugin_don_button: 2 wpplugin_don_order: 4 ywcm_message: 1 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (33) ### 404page - your smart custom 404 error page: by Peter Raschendorfer – 11.3.0 Add From Server: by Dion Hulse – 3.4.5 Astra Bulk Edit: by Brainstorm Force – 1.2.6 Astra Widgets: by Brainstorm Force – 1.2.9 Code Snippets: by Code Snippets Pro – 2.14.2 GDPR Cookie Consent: by WebToffee – 2.0.6 Font Awesome: by Font Awesome – 4.0.4 Formidable Forms: by Strategy11 – 5.0.13.1 Site Kit by Google: by Google – 1.46.0 Jetpack Without Promotions: by required – 1.1.0 Jetpack: by Automattic – 10.3 MetaSlider: by MetaSlider – 3.23.4 PayPal Donations: by Tips and Tricks HQ Johan Steen – 1.9.7 Redirection: by John Godley – 5.1.3 Responsive Lightbox & Gallery: by dFactory – 2.3.3 SiteGround Security: by SiteGround – 1.1.3 Easy Updates Manager: by Easy Updates Manager Team – 9.0.10 Surbma | WooCommerce Without Marketplace Suggestions: by Surbma – 2.1 SVG Support: by Benbodhi – 2.3.19 TablePress: by Tobias B?thge – 1.14 Ultimate Addons for Gutenberg: by Brainstorm Force – 1.25.1 Ultimate FAQ - WordPress FAQ and Accordion Plugin: by – 2.0.25 UpdraftPlus - Backup/Restore: by UpdraftPlus.Com DavidAnderson – 1.16.65 User Role Editor: by Vladimir Garagulya – 4.60.2 WooCommerce PayPal Payments: by WooCommerce – 1.6.2 WooCommerce Product Dependencies: by SomewhereWarm – 1.2.7 Stock Manager for WooCommerce: by StoreApps – 2.8.3 WooCommerce: by Automattic – 5.9.0 Yoast SEO: by Team Yoast – 17.6 WP Content Copy Protection & No Right Click: by wp-buy – 3.4.2 WP Mail SMTP: by WPForms – 3.2.1 WP Rollback: by Impress.org – 1.7.1 YITH WooCommerce Cart Messages: by YITH – 1.8.0 ### Inactive Plugins (1) ### SiteGround Optimizer: by SiteGround – 6.0.5 ### Settings ### API Enabled: – Force SSL: – Currency: GBP (£) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: ? ### WC Pages ### Shop base: #429 - /shop/ Basket: #431 - /basket/ Checkout: #433 - /checkout/ My account: #435 - /my-account/ Terms and conditions: ? Page not set ### Theme ### Name: Astra Version: 3.7.5 Author URL: https://wpastra.com/about/?utm_source=theme_preview&utm_medium=author_link&utm_campaign=astra_theme Child Theme: ? – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme WooCommerce Support: ? ### Templates ### Overrides: – ### WooCommerce PayPal Payments ### Onboarded: Yes Shop country code: GB PayPal card processing available in country: Yes Pay Later messaging available in country: Yes Vault enabled: Yes ### Action Scheduler ### Complete: 311 Oldest: 2021-10-29 14:35:05 +0100 Newest: 2021-11-28 13:56:11 +0000 Pending: 1 Oldest: 2021-11-29 19:05:07 +0000 Newest: 2021-11-29 19:05:07 +0000 ### Status report information ### Generated at: 2021-11-28 14:11:18 +00:00 <code></code>
and the log shows:-
2021-11-28T13:46:16+00:00 DEBUG POST https://api.sandbox.paypal.com/v1/oauth2/token?grant_type=client_credentials Response Debug ID: 9a9140b1212a1 Response: Array ( [code] => 200 [message] => OK ) 2021-11-28T13:46:17+00:00 DEBUG POST https://api.sandbox.paypal.com/v1/identity/generate-token Response Debug ID: 19e5284686b96 Response: Array ( [code] => 200 [message] => OK ) 2021-11-28T13:47:13+00:00 DEBUG POST https://api.sandbox.paypal.com/v2/checkout/orders Request Body: {"intent":"CAPTURE","purchase_units":[{"reference_id":"default","amount":{"currency_code":"GBP","value":"40.00","breakdown":{"item_total":{"currency_code":"GBP","value":"40.00"},"shipping":{"currency_code":"GBP","value":"0.00"},"tax_total":{"currency_code":"GBP","value":"0.00"}}},"description":"","items":[{"name":"London to Brighton","unit_amount":{"currency_code":"GBP","value":"40.00"},"quantity":1,"description":"","sku":"","category":"DIGITAL_GOODS","tax":{"currency_code":"GBP","value":"0.00"}}],"payee":{"merchant_id":"FZ7FXKKLVVKG8"}}],"application_context":{"user_action":"CONTINUE","shipping_preference":"NO_SHIPPING","landing_page":"LOGIN","locale":"en-GB","brand_name":"Clan Line Testing","return_url":"https:\/\/test3.mike-turner.uk\/?wc-ajax=ppc-return-url","cancel_url":"https:\/\/test3.mike-turner.uk\/checkout\/"},"payment_method":{"payee_preferred":"UNRESTRICTED","payer_selected":"PAYPAL"}} Response Debug ID: a3556091c8e28 Response: Array ( [code] => 201 [message] => Created ) 2021-11-28T13:47:14+00:00 DEBUG POST https://api.sandbox.paypal.com/v2/checkout/orders Request Body: {"intent":"CAPTURE","purchase_units":[{"reference_id":"default","amount":{"currency_code":"GBP","value":"40.00","breakdown":{"item_total":{"currency_code":"GBP","value":"40.00"},"shipping":{"currency_code":"GBP","value":"0.00"},"tax_total":{"currency_code":"GBP","value":"0.00"}}},"description":"","items":[{"name":"London to Brighton","unit_amount":{"currency_code":"GBP","value":"40.00"},"quantity":1,"description":"","sku":"","category":"DIGITAL_GOODS","tax":{"currency_code":"GBP","value":"0.00"}}],"payee":{"merchant_id":"FZ7FXKKLVVKG8"}}],"application_context":{"user_action":"CONTINUE","shipping_preference":"NO_SHIPPING","landing_page":"LOGIN","locale":"en-GB","brand_name":"Clan Line Testing","return_url":"https:\/\/test3.mike-turner.uk\/?wc-ajax=ppc-return-url","cancel_url":"https:\/\/test3.mike-turner.uk\/checkout\/"},"payment_method":{"payee_preferred":"UNRESTRICTED","payer_selected":"PAYPAL"}} Response Debug ID: a4661938da69f Response: Array ( [code] => 201 [message] => Created ) 2021-11-28T13:47:33+00:00 DEBUG https://api.sandbox.paypal.com/v2/checkout/orders/9LW43386RY8282040 Response Debug ID: e894d1416d813 Response: Array ( [code] => 200 [message] => OK ) 2021-11-28T13:47:44+00:00 DEBUG PATCH https://api.sandbox.paypal.com/v2/checkout/orders/9LW43386RY8282040 Request Body: [{"op":"replace","value":{"reference_id":"default","amount":{"currency_code":"GBP","value":"40.00","breakdown":{"item_total":{"currency_code":"GBP","value":"40.00"},"shipping":{"currency_code":"GBP","value":"0.00"},"tax_total":{"currency_code":"GBP","value":"0.00"}}},"description":"","items":[{"name":"London to Brighton","unit_amount":{"currency_code":"GBP","value":"40.00"},"quantity":1,"description":"","sku":"","category":"DIGITAL_GOODS","tax":{"currency_code":"GBP","value":"0.00"}}],"payee":{"merchant_id":"FZ7FXKKLVVKG8"},"custom_id":"TEST-2734","invoice_id":"TEST-2734"},"path":"\/purchase_units\/@reference_id=='default'"}] Response Debug ID: 00a7a01792499 Response: Array ( [code] => 204 [message] => No Content ) 2021-11-28T13:47:44+00:00 DEBUG https://api.sandbox.paypal.com/v2/checkout/orders/9LW43386RY8282040 Response Debug ID: fb704140e8ca1 Response: Array ( [code] => 200 [message] => OK ) 2021-11-28T13:47:47+00:00 DEBUG POST https://api.sandbox.paypal.com/v2/checkout/orders/9LW43386RY8282040/capture Response Debug ID: d5e1b9ee731e6 Response: Array ( [code] => 201 [message] => Created ) 2021-11-28T13:47:55+00:00 DEBUG POST https://api.sandbox.paypal.com/v1/notifications/verify-webhook-signature Request Body: {"transmission_id":"c4e5f2a0-5051-11ec-aec0-b7a3983117a7","transmission_time":"2021-11-28T13:47:46Z","cert_url":"https:\/\/api.sandbox.paypal.com\/v1\/notifications\/certs\/CERT-360caa42-fca2a594-7a8abba8","auth_algo":"SHA256withRSA","transmission_sig":"OznP91VYiHy3kkS546LaxnDBP+fYd6zHChNH2bY927MQeNtqDfTjm2nq8SyeW7JlwiVhcMdjrL4eQmFZ0dO\/sTzST2r\/7xtBvd1ZdqcHtuRC3\/7voJnfUqQNbWs8u8eBjajVQtjny\/yQ9n8GgsLSZ8C3tMzAW\/CxZ2\/LNMri9oeCjbTds4jItcIIl\/HiilrldrJ5Q3ZSlQBeKLNyuAx+Ws89XHSryiMpkAtk5TnlXBkW4GeBhwgeunnolY8bj\/V27AipBDBes55puWWgD+9xos47nvZX7zd4A3NeQ1DFo1oKsPy7er3H5QFWTaIwe\/75laGMUcs8AS\/dH5FHwCO79g==","webhook_id":"6P5957992C523153Y","webhook_event":{"id":"WH-177578670T5446458-05N498195F2287048","event_version":"1.0","create_time":"2021-11-28T13:47:43.387Z","resource_type":"checkout-order","resource_version":"2.0","event_type":"CHECKOUT.ORDER.APPROVED","summary":"An order has been approved by buyer","resource":{"create_time":"2021-11-28T13:47:14Z","purchase_units":[{"reference_id":"default","amount":{"currency_code":"GBP","value":"40.00","breakdown":{"item_total":{"currency_code":"GBP","value":"40.00"},"shipping":{"currency_code":"GBP","value":"0.00"},"tax_total":{"currency_code":"GBP","value":"0.00"}}},"payee":{"merchant_id":"FZ7FXKKLVVKG8","display_data":{"brand_name":"Clan Line Testing"}},"description":"","items":[{"name":"London to Brighton","unit_amount":{"currency_code":"GBP","value":"40.00"},"tax":{"currency_code":"GBP","value":"0.00"},"quantity":"1","description":"","category":"DIGITAL_GOODS"}]}],"links":[{"href":"https:\/\/api.sandbox.paypal.com\/v2\/checkout\/orders\/9LW43386RY8282040","rel":"self","method":"GET"},{"href":"https:\/\/api.sandbox.paypal.com\/v2\/checkout\/orders\/9LW43386RY8282040","rel":"update","method":"PATCH"},{"href":"https:\/\/api.sandbox.paypal.com\/v2\/checkout\/orders\/9LW43386RY8282040\/capture","rel":"capture","method":"POST"}],"id":"9LW43386RY8282040","intent":"CAPTURE","payer":{"name":{"given_name":"Mike","surname":"Turner"},"email_address":"[email protected]","payer_id":"BUASCMWYR69Y2","address":{"country_code":"GB"}},"status":"APPROVED"},"links":[{"href":"https:\/\/api.sandbox.paypal.com\/v1\/notifications\/webhooks-events\/WH-177578670T5446458-05N498195F2287048","rel":"self","method":"GET"},{"href":"https:\/\/api.sandbox.paypal.com\/v1\/notifications\/webhooks-events\/WH-177578670T5446458-05N498195F2287048\/resend","rel":"resend","method":"POST"}]}} Response Debug ID: f95a77bce0839 Response: Array ( [code] => 200 [message] => OK ) 2021-11-28T13:47:55+00:00 WARNING No order for webhook event WH-177578670T5446458-05N498195F2287048 was found. 2021-11-28T13:47:55+00:00 INFO Webhook has been handled by CHECKOUT.ORDER.APPROVED 2021-11-28T13:47:55+00:00 DEBUG POST https://api.sandbox.paypal.com/v1/notifications/verify-webhook-signature Request Body: {"transmission_id":"c4e5f2a0-5051-11ec-aec0-b7a3983117a7","transmission_time":"2021-11-28T13:47:46Z","cert_url":"https:\/\/api.sandbox.paypal.com\/v1\/notifications\/certs\/CERT-360caa42-fca2a594-7a8abba8","auth_algo":"SHA256withRSA","transmission_sig":"OznP91VYiHy3kkS546LaxnDBP+fYd6zHChNH2bY927MQeNtqDfTjm2nq8SyeW7JlwiVhcMdjrL4eQmFZ0dO\/sTzST2r\/7xtBvd1ZdqcHtuRC3\/7voJnfUqQNbWs8u8eBjajVQtjny\/yQ9n8GgsLSZ8C3tMzAW\/CxZ2\/LNMri9oeCjbTds4jItcIIl\/HiilrldrJ5Q3ZSlQBeKLNyuAx+Ws89XHSryiMpkAtk5TnlXBkW4GeBhwgeunnolY8bj\/V27AipBDBes55puWWgD+9xos47nvZX7zd4A3NeQ1DFo1oKsPy7er3H5QFWTaIwe\/75laGMUcs8AS\/dH5FHwCO79g==","webhook_id":"6P5957992C523153Y","webhook_event":{"id":"WH-177578670T5446458-05N498195F2287048","event_version":"1.0","create_time":"2021-11-28T13:47:43.387Z","resource_type":"checkout-order","resource_version":"2.0","event_type":"CHECKOUT.ORDER.APPROVED","summary":"An order has been approved by buyer","resource":{"create_time":"2021-11-28T13:47:14Z","purchase_units":[{"reference_id":"default","amount":{"currency_code":"GBP","value":"40.00","breakdown":{"item_total":{"currency_code":"GBP","value":"40.00"},"shipping":{"currency_code":"GBP","value":"0.00"},"tax_total":{"currency_code":"GBP","value":"0.00"}}},"payee":{"merchant_id":"FZ7FXKKLVVKG8","display_data":{"brand_name":"Clan Line Testing"}},"description":"","items":[{"name":"London to Brighton","unit_amount":{"currency_code":"GBP","value":"40.00"},"tax":{"currency_code":"GBP","value":"0.00"},"quantity":"1","description":"","category":"DIGITAL_GOODS"}]}],"links":[{"href":"https:\/\/api.sandbox.paypal.com\/v2\/checkout\/orders\/9LW43386RY8282040","rel":"self","method":"GET"},{"href":"https:\/\/api.sandbox.paypal.com\/v2\/checkout\/orders\/9LW43386RY8282040","rel":"update","method":"PATCH"},{"href":"https:\/\/api.sandbox.paypal.com\/v2\/checkout\/orders\/9LW43386RY8282040\/capture","rel":"capture","method":"POST"}],"id":"9LW43386RY8282040","intent":"CAPTURE","payer":{"name":{"given_name":"Mike","surname":"Turner"},"email_address":"[email protected]","payer_id":"BUASCMWYR69Y2","address":{"country_code":"GB"}},"status":"APPROVED"},"links":[{"href":"https:\/\/api.sandbox.paypal.com\/v1\/notifications\/webhooks-events\/WH-177578670T5446458-05N498195F2287048","rel":"self","method":"GET"},{"href":"https:\/\/api.sandbox.paypal.com\/v1\/notifications\/webhooks-events\/WH-177578670T5446458-05N498195F2287048\/resend","rel":"resend","method":"POST"}]}} Response Debug ID: cd087ddef11fe Response: Array ( [code] => 200 [message] => OK ) 2021-11-28T13:48:08+00:00 DEBUG POST https://api.sandbox.paypal.com/v1/notifications/verify-webhook-signature Request Body: {"transmission_id":"c97f77f0-5051-11ec-aec0-b7a3983117a7","transmission_time":"2021-11-28T13:47:54Z","cert_url":"https:\/\/api.sandbox.paypal.com\/v1\/notifications\/certs\/CERT-360caa42-fca2a594-7a8abba8","auth_algo":"SHA256withRSA","transmission_sig":"KQH2v\/kezbdESOUqmpI37KXahr4ZjOEpoRlSlYywOQPIGU5RLYEbwmX339mm3TXc7tzRLlBoNTI1D+JQA41xMjqsWjJmwTIXxM1wdVnANe9HkCLfCStQOXriVmiBMCXvgPlUJ8FncWxe7ojRmp16ADqPHiMIvQQe1AcHEewIW0UMUJbwyBgHq0NERuHOcSpAJ\/Dyirudni0ovxZoHVCjE+EpBCuazDvZcmlNH3UGV96+wefBNphuyACUVRtvFziNzrCvYTah1djJZQ8+nPCFC8dLqwiiRZ2REuaqxyYtJVXWcBVH3qvvkdBe22K1qrNIXt8JThpAgfZDfjaERnr5WA==","webhook_id":"6P5957992C523153Y","webhook_event":{"id":"WH-6FK29750JV965481K-8T482896L8738725L","event_version":"1.0","create_time":"2021-11-28T13:47:50.525Z","resource_type":"capture","resource_version":"2.0","event_type":"PAYMENT.CAPTURE.COMPLETED","summary":"Payment completed for GBP 40.0 GBP","resource":{"amount":{"value":"40.00","currency_code":"GBP"},"seller_protection":{"dispute_categories":["ITEM_NOT_RECEIVED","UNAUTHORIZED_TRANSACTION"],"status":"ELIGIBLE"},"supplementary_data":{"related_ids":{"order_id":"9LW43386RY8282040"}},"update_time":"2021-11-28T13:47:46Z","create_time":"2021-11-28T13:47:46Z","final_capture":true,"seller_receivable_breakdown":{"paypal_fee":{"value":"1.56","currency_code":"GBP"},"gross_amount":{"value":"40.00","currency_code":"GBP"},"net_amount":{"value":"38.44","currency_code":"GBP"}},"custom_id":"TEST-2734","invoice_id":"TEST-2734","links":[{"method":"GET","rel":"self","href":"https:\/\/api.sandbox.paypal.com\/v2\/payments\/captures\/0FT67842KP347532E"},{"method":"POST","rel":"refund","href":"https:\/\/api.sandbox.paypal.com\/v2\/payments\/captures\/0FT67842KP347532E\/refund"},{"method":"GET","rel":"up","href":"https:\/\/api.sandbox.paypal.com\/v2\/checkout\/orders\/9LW43386RY8282040"}],"id":"0FT67842KP347532E","status":"COMPLETED"},"links":[{"href":"https:\/\/api.sandbox.paypal.com\/v1\/notifications\/webhooks-events\/WH-6FK29750JV965481K-8T482896L8738725L","rel":"self","method":"GET"},{"href":"https:\/\/api.sandbox.paypal.com\/v1\/notifications\/webhooks-events\/WH-6FK29750JV965481K-8T482896L8738725L\/resend","rel":"resend","method":"POST"}]}} Response Debug ID: 56ad201965e77 Response: Array ( [code] => 200 [message] => OK ) 2021-11-28T13:48:08+00:00 INFO Webhook has been handled by PAYMENT.CAPTURE.COMPLETED 2021-11-28T13:48:08+00:00 DEBUG POST https://api.sandbox.paypal.com/v1/notifications/verify-webhook-signature Request Body: {"transmission_id":"c97f77f0-5051-11ec-aec0-b7a3983117a7","transmission_time":"2021-11-28T13:47:54Z","cert_url":"https:\/\/api.sandbox.paypal.com\/v1\/notifications\/certs\/CERT-360caa42-fca2a594-7a8abba8","auth_algo":"SHA256withRSA","transmission_sig":"KQH2v\/kezbdESOUqmpI37KXahr4ZjOEpoRlSlYywOQPIGU5RLYEbwmX339mm3TXc7tzRLlBoNTI1D+JQA41xMjqsWjJmwTIXxM1wdVnANe9HkCLfCStQOXriVmiBMCXvgPlUJ8FncWxe7ojRmp16ADqPHiMIvQQe1AcHEewIW0UMUJbwyBgHq0NERuHOcSpAJ\/Dyirudni0ovxZoHVCjE+EpBCuazDvZcmlNH3UGV96+wefBNphuyACUVRtvFziNzrCvYTah1djJZQ8+nPCFC8dLqwiiRZ2REuaqxyYtJVXWcBVH3qvvkdBe22K1qrNIXt8JThpAgfZDfjaERnr5WA==","webhook_id":"6P5957992C523153Y","webhook_event":{"id":"WH-6FK29750JV965481K-8T482896L8738725L","event_version":"1.0","create_time":"2021-11-28T13:47:50.525Z","resource_type":"capture","resource_version":"2.0","event_type":"PAYMENT.CAPTURE.COMPLETED","summary":"Payment completed for GBP 40.0 GBP","resource":{"amount":{"value":"40.00","currency_code":"GBP"},"seller_protection":{"dispute_categories":["ITEM_NOT_RECEIVED","UNAUTHORIZED_TRANSACTION"],"status":"ELIGIBLE"},"supplementary_data":{"related_ids":{"order_id":"9LW43386RY8282040"}},"update_time":"2021-11-28T13:47:46Z","create_time":"2021-11-28T13:47:46Z","final_capture":true,"seller_receivable_breakdown":{"paypal_fee":{"value":"1.56","currency_code":"GBP"},"gross_amount":{"value":"40.00","currency_code":"GBP"},"net_amount":{"value":"38.44","currency_code":"GBP"}},"custom_id":"TEST-2734","invoice_id":"TEST-2734","links":[{"method":"GET","rel":"self","href":"https:\/\/api.sandbox.paypal.com\/v2\/payments\/captures\/0FT67842KP347532E"},{"method":"POST","rel":"refund","href":"https:\/\/api.sandbox.paypal.com\/v2\/payments\/captures\/0FT67842KP347532E\/refund"},{"method":"GET","rel":"up","href":"https:\/\/api.sandbox.paypal.com\/v2\/checkout\/orders\/9LW43386RY8282040"}],"id":"0FT67842KP347532E","status":"COMPLETED"},"links":[{"href":"https:\/\/api.sandbox.paypal.com\/v1\/notifications\/webhooks-events\/WH-6FK29750JV965481K-8T482896L8738725L","rel":"self","method":"GET"},{"href":"https:\/\/api.sandbox.paypal.com\/v1\/notifications\/webhooks-events\/WH-6FK29750JV965481K-8T482896L8738725L\/resend","rel":"resend","method":"POST"}]}} Response Debug ID: 59cd4ff14fdc2 Response: Array ( [code] => 200 [message] => OK ) 2021-11-28T13:48:09+00:00 DEBUG POST https://api.sandbox.paypal.com/v1/identity/generate-token Response Debug ID: 26a903994eac3 Response: Array ( [code] => 200 [message] => OK ) 2021-11-28T13:49:44+00:00 DEBUG https://api.sandbox.paypal.com/v2/checkout/orders/9LW43386RY8282040 Response Debug ID: 65d84c2141f82 Response: Array ( [code] => 200 [message] => OK ) 2021-11-28T13:49:44+00:00 DEBUG Trying to refund/void order 9LW43386RY8282040, payments: {"authorizations":[],"captures":[{"id":"0FT67842KP347532E","status":"COMPLETED","amount":{"currency_code":"GBP","value":"40.00"},"final_capture":true,"seller_protection":{"status":"ELIGIBLE"},"invoice_id":"TEST-2734","custom_id":"TEST-2734"}]}. 2021-11-28T13:49:45+00:00 DEBUG POST https://api.sandbox.paypal.com/v2/payments/captures/0FT67842KP347532E/refund Request Body: {"invoice_id":"TEST-2734","amount":{"currency_code":"GBP","value":"40.00"}} Response Debug ID: e28fa0ebb5fed Response: Array ( [code] => 201 [message] => Created ) 2021-11-28T13:50:17+00:00 DEBUG POST https://api.sandbox.paypal.com/v1/notifications/verify-webhook-signature Request Body: {"transmission_id":"1633da00-5052-11ec-a3a5-91f9caf724f0","transmission_time":"2021-11-28T13:50:03Z","cert_url":"https:\/\/api.sandbox.paypal.com\/v1\/notifications\/certs\/CERT-360caa42-fca2a594-7a8abba8","auth_algo":"SHA256withRSA","transmission_sig":"YXIQKm6mUftaETnG2KiZ1FCyH\/iccsDOxQi2ptBfnwq92jwr8Fpt1neP6Xn0T3HQaOa7VYVvy686j0Mxha6Txtu7ZxiA6tzqKeRsBWQd52cElcLVzhfH35u6WdwiLBEUZE\/PR2\/LuwPFpYlmhZWYoR\/q8GRYS6XtR6rN6zJQjTB\/V2lWk3dhhEUh6tZHc4eKoLlN\/xSA5AMmj5L2hlsu8iZu6qswJ5XOSS+XWibba5OvLK8Dxoqjvwe8uGyZgU6eVi1NYPqsgZHAnw4hNfSX4psvyaaKRY9xvmJaQGTZuS9CHjbRRkMGVfqnBUzE5P5Rz1nL0NMPTOuXpUvl5JcL\/w==","webhook_id":"6P5957992C523153Y","webhook_event":{"id":"WH-5WT17053BD730862G-97R23686E8767974M","event_version":"1.0","create_time":"2021-11-28T13:49:49.826Z","resource_type":"refund","resource_version":"2.0","event_type":"PAYMENT.CAPTURE.REFUNDED","summary":"A GBP 40.0 GBP capture payment was refunded","resource":{"seller_payable_breakdown":{"total_refunded_amount":{"value":"40.00","currency_code":"GBP"},"paypal_fee":{"value":"0.00","currency_code":"GBP"},"gross_amount":{"value":"40.00","currency_code":"GBP"},"net_amount":{"value":"40.00","currency_code":"GBP"}},"amount":{"value":"40.00","currency_code":"GBP"},"update_time":"2021-11-28T05:49:45-08:00","create_time":"2021-11-28T05:49:45-08:00","custom_id":"TEST-2734","invoice_id":"TEST-2734","links":[{"method":"GET","rel":"self","href":"https:\/\/api.sandbox.paypal.com\/v2\/payments\/refunds\/4P483027N79187349"},{"method":"GET","rel":"up","href":"https:\/\/api.sandbox.paypal.com\/v2\/payments\/captures\/0FT67842KP347532E"}],"id":"4P483027N79187349","status":"COMPLETED"},"links":[{"href":"https:\/\/api.sandbox.paypal.com\/v1\/notifications\/webhooks-events\/WH-5WT17053BD730862G-97R23686E8767974M","rel":"self","method":"GET"},{"href":"https:\/\/api.sandbox.paypal.com\/v1\/notifications\/webhooks-events\/WH-5WT17053BD730862G-97R23686E8767974M\/resend","rel":"resend","method":"POST"}]}} Response Debug ID: ebd6abe20912c Response: Array ( [code] => 200 [message] => OK ) 2021-11-28T13:50:17+00:00 WARNING Order 2734 could not be refunded 2021-11-28T13:50:17+00:00 INFO Webhook has been handled by PAYMENT.CAPTURE.REFUNDED 2021-11-28T13:50:18+00:00 DEBUG POST https://api.sandbox.paypal.com/v1/notifications/verify-webhook-signature Request Body: {"transmission_id":"1633da00-5052-11ec-a3a5-91f9caf724f0","transmission_time":"2021-11-28T13:50:03Z","cert_url":"https:\/\/api.sandbox.paypal.com\/v1\/notifications\/certs\/CERT-360caa42-fca2a594-7a8abba8","auth_algo":"SHA256withRSA","transmission_sig":"YXIQKm6mUftaETnG2KiZ1FCyH\/iccsDOxQi2ptBfnwq92jwr8Fpt1neP6Xn0T3HQaOa7VYVvy686j0Mxha6Txtu7ZxiA6tzqKeRsBWQd52cElcLVzhfH35u6WdwiLBEUZE\/PR2\/LuwPFpYlmhZWYoR\/q8GRYS6XtR6rN6zJQjTB\/V2lWk3dhhEUh6tZHc4eKoLlN\/xSA5AMmj5L2hlsu8iZu6qswJ5XOSS+XWibba5OvLK8Dxoqjvwe8uGyZgU6eVi1NYPqsgZHAnw4hNfSX4psvyaaKRY9xvmJaQGTZuS9CHjbRRkMGVfqnBUzE5P5Rz1nL0NMPTOuXpUvl5JcL\/w==","webhook_id":"6P5957992C523153Y","webhook_event":{"id":"WH-5WT17053BD730862G-97R23686E8767974M","event_version":"1.0","create_time":"2021-11-28T13:49:49.826Z","resource_type":"refund","resource_version":"2.0","event_type":"PAYMENT.CAPTURE.REFUNDED","summary":"A GBP 40.0 GBP capture payment was refunded","resource":{"seller_payable_breakdown":{"total_refunded_amount":{"value":"40.00","currency_code":"GBP"},"paypal_fee":{"value":"0.00","currency_code":"GBP"},"gross_amount":{"value":"40.00","currency_code":"GBP"},"net_amount":{"value":"40.00","currency_code":"GBP"}},"amount":{"value":"40.00","currency_code":"GBP"},"update_time":"2021-11-28T05:49:45-08:00","create_time":"2021-11-28T05:49:45-08:00","custom_id":"TEST-2734","invoice_id":"TEST-2734","links":[{"method":"GET","rel":"self","href":"https:\/\/api.sandbox.paypal.com\/v2\/payments\/refunds\/4P483027N79187349"},{"method":"GET","rel":"up","href":"https:\/\/api.sandbox.paypal.com\/v2\/payments\/captures\/0FT67842KP347532E"}],"id":"4P483027N79187349","status":"COMPLETED"},"links":[{"href":"https:\/\/api.sandbox.paypal.com\/v1\/notifications\/webhooks-events\/WH-5WT17053BD730862G-97R23686E8767974M","rel":"self","method":"GET"},{"href":"https:\/\/api.sandbox.paypal.com\/v1\/notifications\/webhooks-events\/WH-5WT17053BD730862G-97R23686E8767974M\/resend","rel":"resend","method":"POST"}]}} Response Debug ID: d2253a91b0330 Response: Array ( [code] => 200 [message] => OK ) 2021-11-28T13:51:34+00:00 DEBUG POST https://api.sandbox.paypal.com/v1/identity/generate-token Response Debug ID: f64cdfa55aeed Response: Array ( [code] => 200 [message] => OK ) 2021-11-28T13:52:07+00:00 DEBUG POST https://api.sandbox.paypal.com/v2/checkout/orders Request Body: {"intent":"CAPTURE","purchase_units":[{"reference_id":"default","amount":{"currency_code":"GBP","value":"40.00","breakdown":{"item_total":{"currency_code":"GBP","value":"40.00"},"shipping":{"currency_code":"GBP","value":"0.00"},"tax_total":{"currency_code":"GBP","value":"0.00"}}},"description":"","items":[{"name":"London to Brighton","unit_amount":{"currency_code":"GBP","value":"40.00"},"quantity":1,"description":"","sku":"","category":"DIGITAL_GOODS","tax":{"currency_code":"GBP","value":"0.00"}}],"payee":{"merchant_id":"FZ7FXKKLVVKG8"}}],"application_context":{"user_action":"CONTINUE","shipping_preference":"NO_SHIPPING","landing_page":"LOGIN","locale":"en-GB","brand_name":"Clan Line Testing","return_url":"https:\/\/test3.mike-turner.uk\/?wc-ajax=ppc-return-url","cancel_url":"https:\/\/test3.mike-turner.uk\/checkout\/"},"payment_method":{"payee_preferred":"UNRESTRICTED","payer_selected":"PAYPAL"}} Response Debug ID: ef7664a449152 Response: Array ( [code] => 201 [message] => Created ) 2021-11-28T13:52:08+00:00 DEBUG POST https://api.sandbox.paypal.com/v2/checkout/orders Request Body: {"intent":"CAPTURE","purchase_units":[{"reference_id":"default","amount":{"currency_code":"GBP","value":"40.00","breakdown":{"item_total":{"currency_code":"GBP","value":"40.00"},"shipping":{"currency_code":"GBP","value":"0.00"},"tax_total":{"currency_code":"GBP","value":"0.00"}}},"description":"","items":[{"name":"London to Brighton","unit_amount":{"currency_code":"GBP","value":"40.00"},"quantity":1,"description":"","sku":"","category":"DIGITAL_GOODS","tax":{"currency_code":"GBP","value":"0.00"}}],"payee":{"merchant_id":"FZ7FXKKLVVKG8"}}],"application_context":{"user_action":"CONTINUE","shipping_preference":"NO_SHIPPING","landing_page":"LOGIN","locale":"en-GB","brand_name":"Clan Line Testing","return_url":"https:\/\/test3.mike-turner.uk\/?wc-ajax=ppc-return-url","cancel_url":"https:\/\/test3.mike-turner.uk\/checkout\/"},"payment_method":{"payee_preferred":"UNRESTRICTED","payer_selected":"PAYPAL"}} Response Debug ID: cf94caf2ae3ab Response: Array ( [code] => 201 [message] => Created ) 2021-11-28T13:52:32+00:00 DEBUG https://api.sandbox.paypal.com/v2/checkout/orders/1R7651403G3379027 Response Debug ID: bfe6a2446a1f3 Response: Array ( [code] => 200 [message] => OK ) 2021-11-28T13:52:46+00:00 DEBUG PATCH https://api.sandbox.paypal.com/v2/checkout/orders/1R7651403G3379027 Request Body: [{"op":"replace","value":{"reference_id":"default","amount":{"currency_code":"GBP","value":"40.00","breakdown":{"item_total":{"currency_code":"GBP","value":"40.00"},"shipping":{"currency_code":"GBP","value":"0.00"},"tax_total":{"currency_code":"GBP","value":"0.00"}}},"description":"","items":[{"name":"London to Brighton","unit_amount":{"currency_code":"GBP","value":"40.00"},"quantity":1,"description":"","sku":"","category":"DIGITAL_GOODS","tax":{"currency_code":"GBP","value":"0.00"}}],"payee":{"merchant_id":"FZ7FXKKLVVKG8"},"custom_id":"TEST-2736","invoice_id":"TEST-2736"},"path":"\/purchase_units\/@reference_id=='default'"}] Response Debug ID: 49cde36bb7de0 Response: Array ( [code] => 204 [message] => No Content ) 2021-11-28T13:52:47+00:00 DEBUG https://api.sandbox.paypal.com/v2/checkout/orders/1R7651403G3379027 Response Debug ID: 10b91017faf45 Response: Array ( [code] => 200 [message] => OK ) 2021-11-28T13:52:49+00:00 DEBUG POST https://api.sandbox.paypal.com/v2/checkout/orders/1R7651403G3379027/capture Response Debug ID: eaf718ac45bf5 Response: Array ( [code] => 201 [message] => Created ) 2021-11-28T13:53:19+00:00 DEBUG POST https://api.sandbox.paypal.com/v1/identity/generate-token Response Debug ID: fce094c8098d4 Response: Array ( [code] => 200 [message] => OK ) 2021-11-28T13:53:19+00:00 DEBUG POST https://api.sandbox.paypal.com/v1/notifications/verify-webhook-signature Request Body: {"transmission_id":"81b006a0-5052-11ec-8278-fdd36ae9af94","transmission_time":"2021-11-28T13:53:03Z","cert_url":"https:\/\/api.sandbox.paypal.com\/v1\/notifications\/certs\/CERT-360caa42-fca2a594-7a8abba8","auth_algo":"SHA256withRSA","transmission_sig":"WwGwcF6tRTJvbJ7hUaQOFEwTfUoUywfh6mGS5x+e+BERqzKDb4ew6OI+giRlko7e3xwSFd89JEeYllYOVpq1\/KztL3qrwk\/XZ0fKwRgQE5e3t\/WfZjIj7YbKyKqzg4AsX4jBKO3Afnzn1boj2yOb\/+7NYkPsirNhONOoLq\/4JvS9WF5lfqFhDi584oqrOB2ABCJbllwLMzoW+nXeWa8Dxt5rlg7jik1SBgNgCFXD9XsNwVWDMxg0CrFmjoXktJ4xj2oqG5UYWWy3CE5X9Pz1\/zpQro64AQUmFoVuM\/QSAYkgI9ZM6SI7oFqXW8\/U0GU\/GftfFwN9oa8K8TPT7qvVoQ==","webhook_id":"6P5957992C523153Y","webhook_event":{"id":"WH-0VE492065S2658909-64U947544Y361033M","event_version":"1.0","create_time":"2021-11-28T13:52:53.355Z","resource_type":"capture","resource_version":"2.0","event_type":"PAYMENT.CAPTURE.COMPLETED","summary":"Payment completed for GBP 40.0 GBP","resource":{"amount":{"value":"40.00","currency_code":"GBP"},"seller_protection":{"dispute_categories":["ITEM_NOT_RECEIVED","UNAUTHORIZED_TRANSACTION"],"status":"ELIGIBLE"},"supplementary_data":{"related_ids":{"order_id":"1R7651403G3379027"}},"update_time":"2021-11-28T13:52:48Z","create_time":"2021-11-28T13:52:48Z","final_capture":true,"seller_receivable_breakdown":{"paypal_fee":{"value":"1.56","currency_code":"GBP"},"gross_amount":{"value":"40.00","currency_code":"GBP"},"net_amount":{"value":"38.44","currency_code":"GBP"}},"custom_id":"TEST-2736","invoice_id":"TEST-2736","links":[{"method":"GET","rel":"self","href":"https:\/\/api.sandbox.paypal.com\/v2\/payments\/captures\/0E8926075K574362F"},{"method":"POST","rel":"refund","href":"https:\/\/api.sandbox.paypal.com\/v2\/payments\/captures\/0E8926075K574362F\/refund"},{"method":"GET","rel":"up","href":"https:\/\/api.sandbox.paypal.com\/v2\/checkout\/orders\/1R7651403G3379027"}],"id":"0E8926075K574362F","status":"COMPLETED"},"links":[{"href":"https:\/\/api.sandbox.paypal.com\/v1\/notifications\/webhooks-events\/WH-0VE492065S2658909-64U947544Y361033M","rel":"self","method":"GET"},{"href":"https:\/\/api.sandbox.paypal.com\/v1\/notifications\/webhooks-events\/WH-0VE492065S2658909-64U947544Y361033M\/resend","rel":"resend","method":"POST"}]}} Response Debug ID: 4e05134dda5c1 Response: Array ( [code] => 200 [message] => OK ) 2021-11-28T13:53:19+00:00 INFO Webhook has been handled by PAYMENT.CAPTURE.COMPLETED 2021-11-28T13:53:19+00:00 DEBUG POST https://api.sandbox.paypal.com/v1/notifications/verify-webhook-signature Request Body: {"transmission_id":"818748f0-5052-11ec-a903-4dcfdb7f1329","transmission_time":"2021-11-28T13:53:03Z","cert_url":"https:\/\/api.sandbox.paypal.com\/v1\/notifications\/certs\/CERT-360caa42-fca2a594-7a8abba8","auth_algo":"SHA256withRSA","transmission_sig":"LLlMgTWmcIGtGMYceUNoI7snrorswqD4Rjn3FA8mA9Z5V7tJ9nKlCownWHYHqCqwMkarMVhUg\/PlTGrCR18Efm\/GaSzJ1oAqBYyTZ5tkeX3ImjgyMJQ2mynyujIDi+BfEYgU+9qa8PepVMMWaRJun5CazEkd\/ujtkvY3TsqgL6x+aq74Sb\/drYXH7f0QU1jtAYsJfRv\/qW8I8f\/s5YTl9IdHtuXS6LUeUuQe7XoaUo7Tha0BvQesWEKopbPmOd0Bvaj2nJtv3qwc659C8+SZ3XEwsNoaQfXPLX7Kw47YOqlcTxN7n+BzEg5273LKGigMKX49Y7nrdWQYCK94mgy4Tw==","webhook_id":"6P5957992C523153Y","webhook_event":{"id":"WH-0GP51500YM872230B-7PL18738MV0208104","event_version":"1.0","create_time":"2021-11-28T13:52:36.484Z","resource_type":"checkout-order","resource_version":"2.0","event_type":"CHECKOUT.ORDER.APPROVED","summary":"An order has been approved by buyer","resource":{"create_time":"2021-11-28T13:52:07Z","purchase_units":[{"reference_id":"default","amount":{"currency_code":"GBP","value":"40.00","breakdown":{"item_total":{"currency_code":"GBP","value":"40.00"},"shipping":{"currency_code":"GBP","value":"0.00"},"tax_total":{"currency_code":"GBP","value":"0.00"}}},"payee":{"merchant_id":"FZ7FXKKLVVKG8","display_data":{"brand_name":"Clan Line Testing"}},"description":"","items":[{"name":"London to Brighton","unit_amount":{"currency_code":"GBP","value":"40.00"},"tax":{"currency_code":"GBP","value":"0.00"},"quantity":"1","description":"","category":"DIGITAL_GOODS"}]}],"links":[{"href":"https:\/\/api.sandbox.paypal.com\/v2\/checkout\/orders\/1R7651403G3379027","rel":"self","method":"GET"},{"href":"https:\/\/api.sandbox.paypal.com\/v2\/checkout\/orders\/1R7651403G3379027","rel":"update","method":"PATCH"},{"href":"https:\/\/api.sandbox.paypal.com\/v2\/checkout\/orders\/1R7651403G3379027\/capture","rel":"capture","method":"POST"}],"id":"1R7651403G3379027","intent":"CAPTURE","payer":{"name":{"given_name":"Mike","surname":"Turner"},"email_address":"[email protected]","payer_id":"BUASCMWYR69Y2","address":{"country_code":"GB"}},"status":"APPROVED"},"links":[{"href":"https:\/\/api.sandbox.paypal.com\/v1\/notifications\/webhooks-events\/WH-0GP51500YM872230B-7PL18738MV0208104","rel":"self","method":"GET"},{"href":"https:\/\/api.sandbox.paypal.com\/v1\/notifications\/webhooks-events\/WH-0GP51500YM872230B-7PL18738MV0208104\/resend","rel":"resend","method":"POST"}]}} Response Debug ID: 30aebe32d84c Response: Array ( [code] => 200 [message] => OK ) 2021-11-28T13:53:19+00:00 WARNING No order for webhook event WH-0GP51500YM872230B-7PL18738MV0208104 was found. 2021-11-28T13:53:19+00:00 INFO Webhook has been handled by CHECKOUT.ORDER.APPROVED 2021-11-28T13:53:20+00:00 DEBUG POST https://api.sandbox.paypal.com/v1/notifications/verify-webhook-signature Request Body: {"transmission_id":"818748f0-5052-11ec-a903-4dcfdb7f1329","transmission_time":"2021-11-28T13:53:03Z","cert_url":"https:\/\/api.sandbox.paypal.com\/v1\/notifications\/certs\/CERT-360caa42-fca2a594-7a8abba8","auth_algo":"SHA256withRSA","transmission_sig":"LLlMgTWmcIGtGMYceUNoI7snrorswqD4Rjn3FA8mA9Z5V7tJ9nKlCownWHYHqCqwMkarMVhUg\/PlTGrCR18Efm\/GaSzJ1oAqBYyTZ5tkeX3ImjgyMJQ2mynyujIDi+BfEYgU+9qa8PepVMMWaRJun5CazEkd\/ujtkvY3TsqgL6x+aq74Sb\/drYXH7f0QU1jtAYsJfRv\/qW8I8f\/s5YTl9IdHtuXS6LUeUuQe7XoaUo7Tha0BvQesWEKopbPmOd0Bvaj2nJtv3qwc659C8+SZ3XEwsNoaQfXPLX7Kw47YOqlcTxN7n+BzEg5273LKGigMKX49Y7nrdWQYCK94mgy4Tw==","webhook_id":"6P5957992C523153Y","webhook_event":{"id":"WH-0GP51500YM872230B-7PL18738MV0208104","event_version":"1.0","create_time":"2021-11-28T13:52:36.484Z","resource_type":"checkout-order","resource_version":"2.0","event_type":"CHECKOUT.ORDER.APPROVED","summary":"An order has been approved by buyer","resource":{"create_time":"2021-11-28T13:52:07Z","purchase_units":[{"reference_id":"default","amount":{"currency_code":"GBP","value":"40.00","breakdown":{"item_total":{"currency_code":"GBP","value":"40.00"},"shipping":{"currency_code":"GBP","value":"0.00"},"tax_total":{"currency_code":"GBP","value":"0.00"}}},"payee":{"merchant_id":"FZ7FXKKLVVKG8","display_data":{"brand_name":"Clan Line Testing"}},"description":"","items":[{"name":"London to Brighton","unit_amount":{"currency_code":"GBP","value":"40.00"},"tax":{"currency_code":"GBP","value":"0.00"},"quantity":"1","description":"","category":"DIGITAL_GOODS"}]}],"links":[{"href":"https:\/\/api.sandbox.paypal.com\/v2\/checkout\/orders\/1R7651403G3379027","rel":"self","method":"GET"},{"href":"https:\/\/api.sandbox.paypal.com\/v2\/checkout\/orders\/1R7651403G3379027","rel":"update","method":"PATCH"},{"href":"https:\/\/api.sandbox.paypal.com\/v2\/checkout\/orders\/1R7651403G3379027\/capture","rel":"capture","method":"POST"}],"id":"1R7651403G3379027","intent":"CAPTURE","payer":{"name":{"given_name":"Mike","surname":"Turner"},"email_address":"[email protected]","payer_id":"BUASCMWYR69Y2","address":{"country_code":"GB"}},"status":"APPROVED"},"links":[{"href":"https:\/\/api.sandbox.paypal.com\/v1\/notifications\/webhooks-events\/WH-0GP51500YM872230B-7PL18738MV0208104","rel":"self","method":"GET"},{"href":"https:\/\/api.sandbox.paypal.com\/v1\/notifications\/webhooks-events\/WH-0GP51500YM872230B-7PL18738MV0208104\/resend","rel":"resend","method":"POST"}]}} Response Debug ID: 55051e916650e Response: Array ( [code] => 200 [message] => OK ) 2021-11-28T13:53:20+00:00 DEBUG POST https://api.sandbox.paypal.com/v1/notifications/verify-webhook-signature Request Body: {"transmission_id":"81b006a0-5052-11ec-8278-fdd36ae9af94","transmission_time":"2021-11-28T13:53:03Z","cert_url":"https:\/\/api.sandbox.paypal.com\/v1\/notifications\/certs\/CERT-360caa42-fca2a594-7a8abba8","auth_algo":"SHA256withRSA","transmission_sig":"WwGwcF6tRTJvbJ7hUaQOFEwTfUoUywfh6mGS5x+e+BERqzKDb4ew6OI+giRlko7e3xwSFd89JEeYllYOVpq1\/KztL3qrwk\/XZ0fKwRgQE5e3t\/WfZjIj7YbKyKqzg4AsX4jBKO3Afnzn1boj2yOb\/+7NYkPsirNhONOoLq\/4JvS9WF5lfqFhDi584oqrOB2ABCJbllwLMzoW+nXeWa8Dxt5rlg7jik1SBgNgCFXD9XsNwVWDMxg0CrFmjoXktJ4xj2oqG5UYWWy3CE5X9Pz1\/zpQro64AQUmFoVuM\/QSAYkgI9ZM6SI7oFqXW8\/U0GU\/GftfFwN9oa8K8TPT7qvVoQ==","webhook_id":"6P5957992C523153Y","webhook_event":{"id":"WH-0VE492065S2658909-64U947544Y361033M","event_version":"1.0","create_time":"2021-11-28T13:52:53.355Z","resource_type":"capture","resource_version":"2.0","event_type":"PAYMENT.CAPTURE.COMPLETED","summary":"Payment completed for GBP 40.0 GBP","resource":{"amount":{"value":"40.00","currency_code":"GBP"},"seller_protection":{"dispute_categories":["ITEM_NOT_RECEIVED","UNAUTHORIZED_TRANSACTION"],"status":"ELIGIBLE"},"supplementary_data":{"related_ids":{"order_id":"1R7651403G3379027"}},"update_time":"2021-11-28T13:52:48Z","create_time":"2021-11-28T13:52:48Z","final_capture":true,"seller_receivable_breakdown":{"paypal_fee":{"value":"1.56","currency_code":"GBP"},"gross_amount":{"value":"40.00","currency_code":"GBP"},"net_amount":{"value":"38.44","currency_code":"GBP"}},"custom_id":"TEST-2736","invoice_id":"TEST-2736","links":[{"method":"GET","rel":"self","href":"https:\/\/api.sandbox.paypal.com\/v2\/payments\/captures\/0E8926075K574362F"},{"method":"POST","rel":"refund","href":"https:\/\/api.sandbox.paypal.com\/v2\/payments\/captures\/0E8926075K574362F\/refund"},{"method":"GET","rel":"up","href":"https:\/\/api.sandbox.paypal.com\/v2\/checkout\/orders\/1R7651403G3379027"}],"id":"0E8926075K574362F","status":"COMPLETED"},"links":[{"href":"https:\/\/api.sandbox.paypal.com\/v1\/notifications\/webhooks-events\/WH-0VE492065S2658909-64U947544Y361033M","rel":"self","method":"GET"},{"href":"https:\/\/api.sandbox.paypal.com\/v1\/notifications\/webhooks-events\/WH-0VE492065S2658909-64U947544Y361033M\/resend","rel":"resend","method":"POST"}]}} Response Debug ID: eb20745feff9c Response: Array ( [code] => 200 [message] => OK ) 2021-11-28T13:54:31+00:00 DEBUG https://api.sandbox.paypal.com/v2/checkout/orders/1R7651403G3379027 Response Debug ID: 76ca3c237a251 Response: Array ( [code] => 200 [message] => OK ) 2021-11-28T13:54:31+00:00 DEBUG Trying to refund/void order 1R7651403G3379027, payments: {"authorizations":[],"captures":[{"id":"0E8926075K574362F","status":"COMPLETED","amount":{"currency_code":"GBP","value":"40.00"},"final_capture":true,"seller_protection":{"status":"ELIGIBLE"},"invoice_id":"TEST-2736","custom_id":"TEST-2736"}]}. 2021-11-28T13:54:32+00:00 DEBUG POST https://api.sandbox.paypal.com/v2/payments/captures/0E8926075K574362F/refund Request Body: {"invoice_id":"TEST-2736","amount":{"currency_code":"GBP","value":"15.00"}} Response Debug ID: de8b1f8fa4bf1 Response: Array ( [code] => 201 [message] => Created ) 2021-11-28T13:54:58+00:00 DEBUG POST https://api.sandbox.paypal.com/v1/notifications/verify-webhook-signature Request Body: {"transmission_id":"bc1dc250-5052-11ec-939e-edb49e359949","transmission_time":"2021-11-28T13:54:41Z","cert_url":"https:\/\/api.sandbox.paypal.com\/v1\/notifications\/certs\/CERT-360caa42-fca2a594-7a8abba8","auth_algo":"SHA256withRSA","transmission_sig":"dg3ss9rcpNtxEJGKesnFvAIWtU3AwvklBw9t\/zQ88OHQ\/Q0I8mdTr+aBoWWDE2bYd4vEmaHG0qM897tSOjPDVmc6wSkx+1+lSl5gg0DDgiKr3WVuj0biPZB+1Cp2ZuDt4DzbujhjgywyKjKjRBEvdKSqIAjqrpiv31jk\/QfIhRPwDARTZMIc\/GYILum7fnS38yxExpsNJ\/MemDYjt8+c+L4obsj7qR0IvTAGnmYVquKIFc28zcOJwqhA2DTQ6CiTr4yc2TL4e3Yj94GLezGx6rsRs7S5jYoGNYhMcKmNhvsutsroZT0t\/JrpTy2SRzTqzF9WZ5JMCS3eXDXejemAAw==","webhook_id":"6P5957992C523153Y","webhook_event":{"id":"WH-2FW9584106460302M-3AX5211151889103H","event_version":"1.0","create_time":"2021-11-28T13:54:37.256Z","resource_type":"refund","resource_version":"2.0","event_type":"PAYMENT.CAPTURE.REFUNDED","summary":"A GBP 15.0 GBP capture payment was refunded","resource":{"seller_payable_breakdown":{"total_refunded_amount":{"value":"15.00","currency_code":"GBP"},"paypal_fee":{"value":"0.00","currency_code":"GBP"},"gross_amount":{"value":"15.00","currency_code":"GBP"},"net_amount":{"value":"15.00","currency_code":"GBP"}},"amount":{"value":"15.00","currency_code":"GBP"},"update_time":"2021-11-28T05:54:32-08:00","create_time":"2021-11-28T05:54:32-08:00","custom_id":"TEST-2736","invoice_id":"TEST-2736","links":[{"method":"GET","rel":"self","href":"https:\/\/api.sandbox.paypal.com\/v2\/payments\/refunds\/3YS05612C57446701"},{"method":"GET","rel":"up","href":"https:\/\/api.sandbox.paypal.com\/v2\/payments\/captures\/0E8926075K574362F"}],"id":"3YS05612C57446701","status":"COMPLETED"},"links":[{"href":"https:\/\/api.sandbox.paypal.com\/v1\/notifications\/webhooks-events\/WH-2FW9584106460302M-3AX5211151889103H","rel":"self","method":"GET"},{"href":"https:\/\/api.sandbox.paypal.com\/v1\/notifications\/webhooks-events\/WH-2FW9584106460302M-3AX5211151889103H\/resend","rel":"resend","method":"POST"}]}} Response Debug ID: 28cd84ba5e16 Response: Array ( [code] => 200 [message] => OK ) 2021-11-28T13:55:10+00:00 INFO Order 2736 has been refunded with 15.00 through PayPal 2021-11-28T13:55:10+00:00 INFO Webhook has been handled by PAYMENT.CAPTURE.REFUNDED 2021-11-28T13:55:10+00:00 DEBUG POST https://api.sandbox.paypal.com/v1/notifications/verify-webhook-signature Request Body: {"transmission_id":"bc1dc250-5052-11ec-939e-edb49e359949","transmission_time":"2021-11-28T13:54:41Z","cert_url":"https:\/\/api.sandbox.paypal.com\/v1\/notifications\/certs\/CERT-360caa42-fca2a594-7a8abba8","auth_algo":"SHA256withRSA","transmission_sig":"dg3ss9rcpNtxEJGKesnFvAIWtU3AwvklBw9t\/zQ88OHQ\/Q0I8mdTr+aBoWWDE2bYd4vEmaHG0qM897tSOjPDVmc6wSkx+1+lSl5gg0DDgiKr3WVuj0biPZB+1Cp2ZuDt4DzbujhjgywyKjKjRBEvdKSqIAjqrpiv31jk\/QfIhRPwDARTZMIc\/GYILum7fnS38yxExpsNJ\/MemDYjt8+c+L4obsj7qR0IvTAGnmYVquKIFc28zcOJwqhA2DTQ6CiTr4yc2TL4e3Yj94GLezGx6rsRs7S5jYoGNYhMcKmNhvsutsroZT0t\/JrpTy2SRzTqzF9WZ5JMCS3eXDXejemAAw==","webhook_id":"6P5957992C523153Y","webhook_event":{"id":"WH-2FW9584106460302M-3AX5211151889103H","event_version":"1.0","create_time":"2021-11-28T13:54:37.256Z","resource_type":"refund","resource_version":"2.0","event_type":"PAYMENT.CAPTURE.REFUNDED","summary":"A GBP 15.0 GBP capture payment was refunded","resource":{"seller_payable_breakdown":{"total_refunded_amount":{"value":"15.00","currency_code":"GBP"},"paypal_fee":{"value":"0.00","currency_code":"GBP"},"gross_amount":{"value":"15.00","currency_code":"GBP"},"net_amount":{"value":"15.00","currency_code":"GBP"}},"amount":{"value":"15.00","currency_code":"GBP"},"update_time":"2021-11-28T05:54:32-08:00","create_time":"2021-11-28T05:54:32-08:00","custom_id":"TEST-2736","invoice_id":"TEST-2736","links":[{"method":"GET","rel":"self","href":"https:\/\/api.sandbox.paypal.com\/v2\/payments\/refunds\/3YS05612C57446701"},{"method":"GET","rel":"up","href":"https:\/\/api.sandbox.paypal.com\/v2\/payments\/captures\/0E8926075K574362F"}],"id":"3YS05612C57446701","status":"COMPLETED"},"links":[{"href":"https:\/\/api.sandbox.paypal.com\/v1\/notifications\/webhooks-events\/WH-2FW9584106460302M-3AX5211151889103H","rel":"self","method":"GET"},{"href":"https:\/\/api.sandbox.paypal.com\/v1\/notifications\/webhooks-events\/WH-2FW9584106460302M-3AX5211151889103H\/resend","rel":"resend","method":"POST"}]}} Response Debug ID: d64dddb66ac00 Response: Array ( [code] => 200 [message] => OK ) 2021-11-28T13:55:56+00:00 DEBUG POST https://api.sandbox.paypal.com/v1/notifications/verify-webhook-signature Request Body: {"transmission_id":"bc1dc250-5052-11ec-939e-edb49e359949","transmission_time":"2021-11-28T13:54:41Z","cert_url":"https:\/\/api.sandbox.paypal.com\/v1\/notifications\/certs\/CERT-360caa42-fca2a594-7a8abba8","auth_algo":"SHA256withRSA","transmission_sig":"dg3ss9rcpNtxEJGKesnFvAIWtU3AwvklBw9t\/zQ88OHQ\/Q0I8mdTr+aBoWWDE2bYd4vEmaHG0qM897tSOjPDVmc6wSkx+1+lSl5gg0DDgiKr3WVuj0biPZB+1Cp2ZuDt4DzbujhjgywyKjKjRBEvdKSqIAjqrpiv31jk\/QfIhRPwDARTZMIc\/GYILum7fnS38yxExpsNJ\/MemDYjt8+c+L4obsj7qR0IvTAGnmYVquKIFc28zcOJwqhA2DTQ6CiTr4yc2TL4e3Yj94GLezGx6rsRs7S5jYoGNYhMcKmNhvsutsroZT0t\/JrpTy2SRzTqzF9WZ5JMCS3eXDXejemAAw==","webhook_id":"6P5957992C523153Y","webhook_event":{"id":"WH-2FW9584106460302M-3AX5211151889103H","event_version":"1.0","create_time":"2021-11-28T13:54:37.256Z","resource_type":"refund","resource_version":"2.0","event_type":"PAYMENT.CAPTURE.REFUNDED","summary":"A GBP 15.0 GBP capture payment was refunded","resource":{"seller_payable_breakdown":{"total_refunded_amount":{"value":"15.00","currency_code":"GBP"},"paypal_fee":{"value":"0.00","currency_code":"GBP"},"gross_amount":{"value":"15.00","currency_code":"GBP"},"net_amount":{"value":"15.00","currency_code":"GBP"}},"amount":{"value":"15.00","currency_code":"GBP"},"update_time":"2021-11-28T05:54:32-08:00","create_time":"2021-11-28T05:54:32-08:00","custom_id":"TEST-2736","invoice_id":"TEST-2736","links":[{"method":"GET","rel":"self","href":"https:\/\/api.sandbox.paypal.com\/v2\/payments\/refunds\/3YS05612C57446701"},{"method":"GET","rel":"up","href":"https:\/\/api.sandbox.paypal.com\/v2\/payments\/captures\/0E8926075K574362F"}],"id":"3YS05612C57446701","status":"COMPLETED"},"links":[{"href":"https:\/\/api.sandbox.paypal.com\/v1\/notifications\/webhooks-events\/WH-2FW9584106460302M-3AX5211151889103H","rel":"self","method":"GET"},{"href":"https:\/\/api.sandbox.paypal.com\/v1\/notifications\/webhooks-events\/WH-2FW9584106460302M-3AX5211151889103H\/resend","rel":"resend","method":"POST"}]}} Response Debug ID: 2693c7111dea2 Response: Array ( [code] => 200 [message] => OK ) 2021-11-28T13:55:56+00:00 WARNING Order 2736 could not be refunded 2021-11-28T13:55:56+00:00 INFO Webhook has been handled by PAYMENT.CAPTURE.REFUNDED 2021-11-28T13:55:56+00:00 DEBUG POST https://api.sandbox.paypal.com/v1/notifications/verify-webhook-signature Request Body: {"transmission_id":"bc1dc250-5052-11ec-939e-edb49e359949","transmission_time":"2021-11-28T13:54:41Z","cert_url":"https:\/\/api.sandbox.paypal.com\/v1\/notifications\/certs\/CERT-360caa42-fca2a594-7a8abba8","auth_algo":"SHA256withRSA","transmission_sig":"dg3ss9rcpNtxEJGKesnFvAIWtU3AwvklBw9t\/zQ88OHQ\/Q0I8mdTr+aBoWWDE2bYd4vEmaHG0qM897tSOjPDVmc6wSkx+1+lSl5gg0DDgiKr3WVuj0biPZB+1Cp2ZuDt4DzbujhjgywyKjKjRBEvdKSqIAjqrpiv31jk\/QfIhRPwDARTZMIc\/GYILum7fnS38yxExpsNJ\/MemDYjt8+c+L4obsj7qR0IvTAGnmYVquKIFc28zcOJwqhA2DTQ6CiTr4yc2TL4e3Yj94GLezGx6rsRs7S5jYoGNYhMcKmNhvsutsroZT0t\/JrpTy2SRzTqzF9WZ5JMCS3eXDXejemAAw==","webhook_id":"6P5957992C523153Y","webhook_event":{"id":"WH-2FW9584106460302M-3AX5211151889103H","event_version":"1.0","create_time":"2021-11-28T13:54:37.256Z","resource_type":"refund","resource_version":"2.0","event_type":"PAYMENT.CAPTURE.REFUNDED","summary":"A GBP 15.0 GBP capture payment was refunded","resource":{"seller_payable_breakdown":{"total_refunded_amount":{"value":"15.00","currency_code":"GBP"},"paypal_fee":{"value":"0.00","currency_code":"GBP"},"gross_amount":{"value":"15.00","currency_code":"GBP"},"net_amount":{"value":"15.00","currency_code":"GBP"}},"amount":{"value":"15.00","currency_code":"GBP"},"update_time":"2021-11-28T05:54:32-08:00","create_time":"2021-11-28T05:54:32-08:00","custom_id":"TEST-2736","invoice_id":"TEST-2736","links":[{"method":"GET","rel":"self","href":"https:\/\/api.sandbox.paypal.com\/v2\/payments\/refunds\/3YS05612C57446701"},{"method":"GET","rel":"up","href":"https:\/\/api.sandbox.paypal.com\/v2\/payments\/captures\/0E8926075K574362F"}],"id":"3YS05612C57446701","status":"COMPLETED"},"links":[{"href":"https:\/\/api.sandbox.paypal.com\/v1\/notifications\/webhooks-events\/WH-2FW9584106460302M-3AX5211151889103H","rel":"self","method":"GET"},{"href":"https:\/\/api.sandbox.paypal.com\/v1\/notifications\/webhooks-events\/WH-2FW9584106460302M-3AX5211151889103H\/resend","rel":"resend","method":"POST"}]}} Response Debug ID: 52267ff9ed9c6 Response: Array ( [code] => 200 [message] => OK )
- The topic ‘Partial refunds duplicated’ is closed to new replies.