Shopping Cart Operations > Support

PayPal code is outputted to customer comments

(1/3) > >>

RCodiaDavid:
Earlier this month I disabled "Fast Checkout" as whenever anyone pays using PayPal, we get a big block of code from PayPal webhook in the Status & Comments section of the order. Disabling fast checkout didn't fix this, but it did have the strange side-effect of not sending any purchase details for Google Ads so it looks like no purchases have been made through there.

My main worry is the block of text though, in the Customer's order comment we get this for every PayPal transaction:

Paypal webhook PAYMENT.CAPTURE.COMPLETED:

Parsed data:
array (
'id' => etc...

Any idea why this is happening and how to fix it?

Basara:
Hello.
What is your AbanteCart and what PayPal extension do you have?

RCodiaDavid:
We are using Abantecart 1.3.4 (bootstrap5 template) and it's the paypal_commerce 1.0.0

PayPal express is uninstalled and default_pp_standart 1.0.2 is disabled.

RCodiaDavid:
Does anyone have any info on this?

It seems that every PayPal order has the same code in the Customer's Order Comment section after the order goes through.
Mostly the orders via PayPal work but for some of them no notification is coming through and they don't show up in the customers order history!

This is what we get: (any ***** is me censoring for security)


--- Code: ---Date Added                Status Customer Notified
04/19/2024 07:37:03 PM  Pending Yes

Date Added                 Status Customer Notified
04/19/2024 07:37:15 PM Processing No
Customer's order comment
Order updated by Paypal webhook request.

Date Added                 Status Customer Notified
04/19/2024 07:37:15 PM Processing No
Customer's order comment
Paypal webhook PAYMENT.CAPTURE.COMPLETED:

Parsed data:
array (
'id' => '*************************', <
'event_version' => '1.0',
'create_time' => '2024-04-19T18:37:06.800Z',
'resource_type' => 'capture',
'resource_version' => '2.0',
'event_type' => 'PAYMENT.CAPTURE.COMPLETED',
'summary' => 'Payment completed for GBP 76.14 GBP',
'resource' =>
array (
'id' => '**************',
'amount' =>
array (
'currency_code' => 'GBP',
'value' => '76.14',
),
'final_capture' => true,
'seller_protection' =>
array (
'status' => 'ELIGIBLE',
'dispute_categories' =>
array (
0 => 'ITEM_NOT_RECEIVED',
1 => 'UNAUTHORIZED_TRANSACTION',
),
),
'seller_receivable_breakdown' =>
array (
'gross_amount' =>
array (
'currency_code' => 'GBP',
'value' => '76.14',
),
'paypal_fee' =>
array (
'currency_code' => 'GBP',
'value' => '2.51',
),
'net_amount' =>
array (
'currency_code' => 'GBP',
'value' => '73.63',
),
),
'custom_id' => '***************************',
'status' => 'COMPLETED',
'supplementary_data' =>
array (
'related_ids' =>
array (
'order_id' => '***************',
),
),
'payee' =>
array (
'email_address' => '*****************',
'merchant_id' => '**************',
),
'create_time' => '2024-04-19T18:37:01Z',
'update_time' => '2024-04-19T18:37:01Z',
'links' =>
array (
0 =>
array (
'href' => 'h t t p s : / / api . paypal . com /v2/payments/captures/************',
'rel' => 'self',
'method' => 'GET',
),
1 =>
array (
'href' => ' h t t p s : / / api . paypal . com /v2/payments/captures/**********/refund',
'rel' => 'refund',
'method' => 'POST',
),
2 =>
array (
'href' => 'h t t p s : / / api . paypal . com /v2/checkout/orders/************',
'rel' => 'up',
'method' => 'GET',
),
),
),
'links' =>
array (
0 =>
array (
'href' => 'h t t p s : / / api . paypal . com / v1 / notifications / webhooks-events / **************************',
'rel' => 'self',
'method' => 'GET',
),
1 =>
array (
'href' => 'h t t p s : / / api . paypal . com / v1 / notifications / webhooks-events / ******************** / resend',
'rel' => 'resend',
'method' => 'POST',
),
),
)
--- End code ---

RCodiaDavid:
As an update, it seems that the customer that orders but doesn't trigger notification (PayPal payment goes through but no emails saying order came in get sent by PayPal or the store) has been checking out as a guest.

This doesn't sold the code in comments issue but could this be the reason for failed notifications? They have an account but don't use it when they order. But they use same email etc.

Navigation

[0] Message Index

[#] Next page

Go to full version
Powered by SMFPacks Social Login Mod