Please help us to make AbanteCart Ideal Open Source Ecommerce Solution for everyone.

Support AbanteCart eCommerce

Author Topic: PayPal code is outputted to customer comments  (Read 2472 times)

Offline RCodiaDavid

  • Newbie
  • *
  • Posts: 29
  • Karma: +5/-0
    • View Profile
PayPal code is outputted to customer comments
« on: February 27, 2024, 07:32:34 AM »
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?

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5856
  • Karma: +275/-2
    • View Profile
Re: PayPal code is outputted to customer comments
« Reply #1 on: February 27, 2024, 07:34:59 AM »
Hello.
What is your AbanteCart and what PayPal extension do you have?

Offline RCodiaDavid

  • Newbie
  • *
  • Posts: 29
  • Karma: +5/-0
    • View Profile
Re: PayPal code is outputted to customer comments
« Reply #2 on: February 27, 2024, 07:40:28 AM »
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.

Offline RCodiaDavid

  • Newbie
  • *
  • Posts: 29
  • Karma: +5/-0
    • View Profile
Re: PayPal code is outputted to customer comments
« Reply #3 on: April 23, 2024, 10:26:45 AM »
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: [Select]
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',
),
),
)
« Last Edit: April 24, 2024, 01:59:42 AM by Basara »

Offline RCodiaDavid

  • Newbie
  • *
  • Posts: 29
  • Karma: +5/-0
    • View Profile
Re: PayPal code is outputted to customer comments
« Reply #4 on: April 23, 2024, 10:49:12 AM »
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.

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5856
  • Karma: +275/-2
    • View Profile
Re: PayPal code is outputted to customer comments
« Reply #5 on: April 24, 2024, 01:58:46 AM »
Hello.
These "comments" are not visible to the customers but only to the admin and come from the PayPal API when some event happens with the order so administrators can see what happens on the Paypal side after the order is placed.

Offline RCodiaDavid

  • Newbie
  • *
  • Posts: 29
  • Karma: +5/-0
    • View Profile
Re: PayPal code is outputted to customer comments
« Reply #6 on: April 24, 2024, 04:45:46 AM »
Ah ok thanks Basara! That puts my mind at rest.

Any idea why one customers orders don't send any notifications? Usually should get one from the shop and from PayPal but neither get sent but PayPal money arrives.

It only seems to happen with one customer at the moment, and it seems they always check out using a mobile phone and as guest. We have asked them to log in for future purchases to see if that fixes it, but it's happened like 3 times to the same customer.

Thanks again

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5856
  • Karma: +275/-2
    • View Profile
Re: PayPal code is outputted to customer comments
« Reply #7 on: April 24, 2024, 06:35:07 AM »
Ah ok thanks Basara! That puts my mind at rest.

Any idea why one customers orders don't send any notifications? Usually should get one from the shop and from PayPal but neither get sent but PayPal money arrives.


Hello. Are you referring to the email that is sent out once the order has been confirmed?

Offline RCodiaDavid

  • Newbie
  • *
  • Posts: 29
  • Karma: +5/-0
    • View Profile
Re: PayPal code is outputted to customer comments
« Reply #8 on: April 24, 2024, 06:38:35 AM »
Yes, the customer places the order but no notification is sent out to say the order has come in. The payment arrives at the PayPal end but no email from them either. It's only noticed when there is a mismatch with the payment amounts that show an order went missing.

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5856
  • Karma: +275/-2
    • View Profile
Re: PayPal code is outputted to customer comments
« Reply #9 on: April 24, 2024, 10:10:24 AM »
Yes, the customer places the order but no notification is sent out to say the order has come in. The payment arrives at the PayPal end but no email from them either. It's only noticed when there is a mismatch with the payment amounts that show an order went missing.

Did you see the order in Sales > Orders?

Offline RCodiaDavid

  • Newbie
  • *
  • Posts: 29
  • Karma: +5/-0
    • View Profile
Re: PayPal code is outputted to customer comments
« Reply #10 on: April 24, 2024, 10:15:05 AM »
Yes it appears in the list with all the other orders but just no emails triggered at all.

Offline Basara

  • Administrator
  • Hero Member
  • *****
  • Posts: 5856
  • Karma: +275/-2
    • View Profile
Re: PayPal code is outputted to customer comments
« Reply #11 on: April 25, 2024, 01:46:22 AM »
Yes it appears in the list with all the other orders but just no emails triggered at all.

Possibly your hosting or SMTP server block that email

Offline RCodiaDavid

  • Newbie
  • *
  • Posts: 29
  • Karma: +5/-0
    • View Profile
Re: PayPal code is outputted to customer comments
« Reply #12 on: April 25, 2024, 04:44:11 AM »
It's strange as other emails come through okay.

I've asked the shop owner to contact PayPal and see if they can see anything strange at their end as their emails for this particular customer don't come through either.

I will update if I find out anything.

 

Powered by SMFPacks Social Login Mod