Re: paypal standbox test payment does not mark the listing as premium
« Reply #15 on: February 25, 2018, 11:25:42 PM »
Hope this would help


Code: [Select]
array (
 'extra' => 'user,21|itemid,13|email,xxxx@xxxx|amount,0.5|random,195',
 'mc_gross' => '0.50',
 'protection_eligibility' => 'Ineligible',
 'address_status' => 'confirmed',
 'payer_id' => 'WFJWZLSNYBX9Y',
 'address_street' => '1 Main St',
 'payment_date' => '14:02:24 Feb 25, 2018 PST',
 'payment_status' => 'Pending',
 'charset' => 'windows-1252',
 'address_zip' => '95131',
 'first_name' => 'test',
 'address_country_code' => 'US',
 'address_name' => 'test buyer',
 'notify_version' => '3.9',
 'custom' => 'user,21|itemid,13|email,xxx@xxx|amount,0.5|random,195',
 'payer_status' => 'verified',
 'address_country' => 'United States',
 'address_city' => 'San Jose',
 'quantity' => '1',
 'verify_sign' => 'Ai2wvIVeSssqwxVcMK9XcafWsgAPAK3dfgz-CtZZ9Y07-GVt1GHf9O-E',
 'payer_email' => '[email protected]',
 'txn_id' => '8G734104119921723',
 'payment_type' => 'instant',
 'last_name' => 'buyer',
 'address_state' => 'CA',
 'receiver_email' => 'xxx@xxx',
 'pending_reason' => 'unilateral',
 'txn_type' => 'web_accept',
 'item_name' => 'Pay fee 0.50EUR for item 13',
 'mc_currency' => 'EUR',
 'item_number' => '901x2x13',
 'residence_country' => 'US',
 'test_ipn' => '1',
 'transaction_subject' => '',
 'payment_gross' => '',
 'ipn_track_id' => 'f1eb74ab492a8',
)\n\n ---------------- \n\ncmd=_notify-validate&mc_gross=0.50&protection_eligibility=Ineligible&address_status=confirmed&payer_id=WFJWZLSNYBX9Y&address_street=1+Main+St&payment_date=14%3A02%3A24+Feb+25%2C+2018+PST&payment_status=Pending&charset=windows-1252&address_zip=95131&first_name=test&address_country_code=US&address_name=test+buyer&notify_version=3.9&custom=user%2C21%7Citemid%2C13%7Cemail%2Clxxxx%40xxxx%7Camount%2C0.5%7Crandom%2C195&payer_status=verified&address_country=United+States&address_city=San+Jose&quantity=1&verify_sign=Ai2wvIVeSssqwxVcMK9XcafWsgAPAK3dfgz-CtZZ9Y07-GVt1GHf9O-E&payer_email=lyubomir-buyer%40gmail.com&txn_id=8G734104119921723&payment_type=instant&last_name=buyer&address_state=CA&receiver_email=xxx%40xxx&pending_reason=unilateral&txn_type=web_accept&item_name=Pay+fee+0.50EUR+for+item+13&mc_currency=EUR&item_number=901x2x13&residence_country=US&test_ipn=1&transaction_subject=&payment_gross=&ipn_track_id=f1eb74ab492a8

*

MB Themes

Re: paypal standbox test payment does not mark the listing as premium
« Reply #16 on: February 26, 2018, 08:46:14 AM »
@Lyubomir
Some values are missing there:
      $emailtext = "status => " . $status . "\r\n";
      $emailtext .= osp_array_to_string($product_type). "\r\n";


But I think problem is there:
'payment_status' => 'Pending',

How it happen that instant payment is in pending state?

In plugin you can update pending payments to be accepted as well.
In file:
oc-content/plugins/osclass_pay/payments/paypl/Paypl.php

find:
Code: [Select]
if (Params::getParam('payment_status') == 'Completed' || Params::getParam('st') == 'Completed') {

change into:
Code: [Select]
      $payment_status = strtolower(Params::getParam('payment_status') <> '' ? Params::getParam('payment_status') : Params::getParam('st'));
 
      if($payment_status == 'completed' || $payment_status == 'pending') {
« Last Edit: February 26, 2018, 08:49:02 AM by MB Themes »
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots

Re: paypal standbox test payment does not mark the listing as premium
« Reply #17 on: February 26, 2018, 03:35:29 PM »
Thank you for your workaround.

I have also noticed this weird 'payment_status' => 'Pending' at the initial debug report.
I am starting to suspect that it must be the Paypal which doesn't work well with IDN domains and thus, it doesn't return the payment confirmation properly. This must be the reason why it only fails for me, because I have migrated to IDN domain.

Yesterday I found out that their mail confirmation link doesn't work if mail address contains IDN domain.

I will try to research more on this and if nothing found will implement the workaround as a last resort.


Thank you

Re: paypal standbox test payment does not mark the listing as premium
« Reply #18 on: March 01, 2018, 12:04:02 AM »
I am happy to share that I managed to get it working without applying the workaround.
It is the PayPal, who does not return the payment confirmation ( IPN ) properly. Nothing wrong with the plugin!

The below article

https://stackoverflow.com/questions/4298117/paypal-ipn-always-return-payment-status-pending-on-sandbox

gave me some hints to the resolution. In my case it must have been the different currencies ( price in EUR account in US ) or not correctly set a merchant email address.

I've performed two tests:

1. Standbox account set in Austria to match with the EUR currency of the item price
2. Real payment from my personal paypal account.

And both were successsfull.

I will write down the workaround to have it just in case.

Thank you for all your help!
« Last Edit: March 01, 2018, 12:07:16 AM by Lyubomir Minchev »

*

Ivanko

  • *****
  • 388 posts
Re: paypal standbox test payment does not mark the listing as premium
« Reply #19 on: March 01, 2018, 12:39:16 AM »
I am happy to share that I managed to get it working without applying the workaround.
It is the PayPal, who does not return the payment confirmation ( IPN ) properly. Nothing wrong with the plugin!

The below article

https://stackoverflow.com/questions/4298117/paypal-ipn-always-return-payment-status-pending-on-sandbox

gave me some hints to the resolution. In my case it must have been the different currencies ( price in EUR account in US ) or not correctly set a merchant email address.

I've performed two tests:

1. Standbox account set in Austria to match with the EUR currency of the item price
2. Real payment from my personal paypal account.

And both were successsfull.

I will write down the workaround to have it just in case.

Thank you for all your help!
dont you have set up in paypal area - accept all currencies with auto convert.(something like this)?
I remember this settings, and it was important one.

*

schilaci

  • **
  • 25 posts
Re: paypal standbox test payment does not mark the listing as premium
« Reply #20 on: June 06, 2022, 09:04:55 PM »
I'm having same issue with paypal. strip payment working fine but not paypal.

have you fixed it?