Hello,
Many thanks for your reply. I’ve used both options, but it still doesn’t work.
I’ve used both options, but it still doesn’t work.
I have activated the IPN notifications in paypal. Anyway, if you previously received the information by email, both by the email sent by the plugin itself, and by the email that I create personalized.
Also, I have changed the shortcode also based on the forum you referenced.
But I’m still not getting the item_number1. I receive all the data except that:
…s:15:”address_country”;s:2:”ES”;s:12:”item_number1″;s:0:””;s:10:”item_name1″;s:68:”CURSO …General)”;s:9:”quantity1″;s:1:”1″;s:10:”mc_gross_1″;s:1:”1″;s:14:”num_cart_items”;s:1:…
The log file is empty the item name too…
[08/13/2020 11:22 PM] – SUCCESS :[[{“item_number”:””,”item_name”:”CURSO DE …
That anyway, with the payment through the normal yellow PayPal button, it does return the article number:
a:37:{s:8:”mc_gross”;s:4:”1.00″;s:22:”protection_eligibility”;s:8:”Eligible”;s:12:”item_number1″;s:2:”10″;s:8:”payer_id”;s:13:”3KP5DXQP9NUBG”;s:12:”payment_date”;s:25:”16:14:38 Aug 13, 2020 PDT”;s:14:”payment_status”;s:9:”Completed”;s:7:”charset”;s:12:”windows-1252″;
The problem is when I pay with the PayPal Smart Checkout…
Also, with the Paypal Smart Checkout, the reset not run well. Add some characters to the url that makes the reset not occur (amp%3B)
….p.com/?compra=ok&%3Breset_wp_cart=1
Without the smart checkout, the reset works fine.
Could this code that I have seen that makes item number empty have something to do with the problem?
wordpress-simple-paypal-shopping-cart/paypal.php
line 468
foreach ( $data[ ‘transactions’ ][ 0 ][ ‘item_list’ ][ ‘items’ ] as $item ) {
$ipn[ ‘item_number’ . $i ] = ”;
$ipn[ ‘item_name’ . $i ] = $item[ ‘name’ ];
$ipn[ ‘quantity’ . $i ] = $item[ ‘quantity’ ];
$ipn[ ‘mc_gross_’ . $i ] = $item[ ‘price’ ] * $item[ ‘quantity’ ];
$i ++;
}
Thanks,
Sergio