VirtueMart Forum

VirtueMart 2 + 3 => General Questions => Topic started by: davix10 on April 08, 2021, 12:47:05 pm

Title: Pending payment
Post by: davix10 on April 08, 2021, 12:47:05 pm
Hi,
I do not understand why the order paid via paypal has been pending for two weeks even if the payment has been successful.
I always have IPN verification turned off, what could have happened? I didn't make any changes and overnight it didn't work anymore.

Can you help me?

Thanks in advance

Virtuemart 3.6.10
Title: Re: Pending payment
Post by: pinochico on April 08, 2021, 13:48:36 pm
only right setup paypal IPN and make on, nothing more
Title: Re: Pending payment
Post by: davix10 on April 08, 2021, 13:54:19 pm
Should I activate the IPN? For now it is disabled on both joomla and paypal. On my website I had disabled it because I use a CDN.
The strange thing is that it worked for 2 years like this without ever giving any problems
Title: Re: Pending payment
Post by: pinochico on April 08, 2021, 14:02:46 pm
in forum I saw some info about paypal IPN change IP adress - maybe this problem - change function from Paypal?
Title: Re: Pending payment
Post by: Jörgen on April 08, 2021, 14:12:11 pm
It is correct that PayPal is changing there IP adresses for the IPN communication. But if You say that Your IPN is unused then I do not see why it does not work for You.
Maybe PayPal has done other changes that gives trouble. Please check with PayPal,
Maybe you have upadated PHP and this gives problems ?

Jörgen @ Kreativ Fotografi
Title: Re: Pending payment
Post by: davix10 on April 09, 2021, 06:57:02 am
I haven't done any PHP updates and my IPN is disabled, how can I fix this?
Title: Re: Pending payment
Post by: Jörgen on April 09, 2021, 07:57:33 am
Quite frankly, this is how it works.

Since You have not changed anything, then the problem lies some other place, I would say Paypal, browser behaviour etc

Saved code does not suddenly change behaviour without reason.

Since I am out of ideas, have You checked agains any unwanted changes, serverupdates, hacked site?

VM 3.6.10 is over one year old, maybe consider testing an update of a backup site ?

Jörgen
Title: Re: Pending payment
Post by: davix10 on April 09, 2021, 09:01:04 am
I don't seem to have made any other changes since i have this problem, now i will try to update the version of VirtueMart
Title: Re: Pending payment
Post by: Jörgen on April 09, 2021, 09:28:52 am
Please do a backup first :) Or use a test server.

Jörgen
Title: Re: Pending payment
Post by: AH on April 09, 2021, 10:04:19 am
Quote
The strange thing is that it worked for 2 years like this without ever giving any problems

Do all IPNs fail to get to you

If you use CDN then talk to your CDN provider that might be the real issue here - do they filter IP's etc
Title: Re: Pending payment
Post by: davix10 on April 09, 2021, 10:54:24 am
Quote
The strange thing is that it worked for 2 years like this without ever giving any problems

Do all IPNs fail to get to you

If you use CDN then talk to your CDN provider that might be the real issue here - do they filter IP's etc

but even if the IPN is disabled?
Title: Re: Pending payment
Post by: AH on April 09, 2021, 12:47:54 pm
Yes - because it may be that the message does not get to VM if the CDN is interfering
Title: Re: Pending payment
Post by: davix10 on April 09, 2021, 13:42:38 pm
Yes - because it may be that the message does not get to VM if the CDN is interfering

I contacted CDN support and they told me they haven't made any changes and everything works fine
Title: Re: Pending payment
Post by: davix10 on April 09, 2021, 14:07:39 pm
I updated to the latest version of VirtueMart but I still have the same problem but I have a doubt about this setting which is set to "YES", is this correct?

Change order status when IPN 'payment_status' is None of the above -> YES
Title: Re: Pending payment
Post by: AH on April 10, 2021, 09:52:11 am
Changing that setting is only for catching IPN messages that are unexpected and not one of the above.  As the messages should be a standard success - this setting has no impact
Title: Re: Pending payment
Post by: davix10 on April 12, 2021, 06:59:25 am
Unfortunately even updating to the latest version still remains the same problem and I don't know how to solve it.
Title: Re: Pending payment
Post by: Jörgen on April 12, 2021, 07:54:24 am
Turn om error check in Paypal and see what the log sais.
Jörgen @ Kreativ Fotografi
Title: Re: Pending payment
Post by: davix10 on April 12, 2021, 12:06:17 pm
This is log about the last order:

Code: [Select]
2021-04-09 12:00:03 DEBUG plgVmConfirmedOrder: order number: DGZG086
2021-04-09 12:00:03 MESSAGE plgVmConfirmedOrder: Amount/Currency stored 24.4 paymentcurrency 47 orderusercurrency47
2021-04-09 12:01:36 DEBUG plgVmOnPaymentResponseReceived: stdClass Object
(
    [id] => 146
    [virtuemart_order_id] => 105
    [order_number] => DGZG086
    [virtuemart_paymentmethod_id] => 1
    [payment_name] => <span class="vmCartPaymentLogo" ><img align="middle" src="https://www.otbioelettronica.it/images/virtuemart/payment/paypal_cc.jpg"  alt="paypal_cc" /></span>  <span class="vmpayment_name">Paypal</span>
    [payment_order_total] => 24.40000
    [payment_currency] => 47
    [email_currency] => 47
    [cost_per_transaction] => 0.00
    [cost_percent_total] => 0.00
    [tax_id] => 0
    [paypal_custom] => 90612a712e028436548ac1ea6a3e878c
    [paypal_method] => 0
    [paypal_response_mc_gross] => 0.00
    [paypal_response_mc_currency] => 0
    [paypal_response_invoice] => 0
    [paypal_response_protection_eligibility] => 0
    [paypal_response_payer_id] => 0
    [paypal_response_tax] => 0.00
    [paypal_response_payment_date] => 0
    [paypal_response_payment_status] => 0
    [paypal_response_pending_reason] => 0
    [paypal_response_mc_fee] => 0.00
    [paypal_response_payer_email] => 0
    [paypal_response_last_name] => 0
    [paypal_response_first_name] => 0
    [paypal_response_business] => 0
    [paypal_response_receiver_email] => 0
    [paypal_response_transaction_subject] => 0
    [paypal_response_residence_country] => 0
    [paypal_response_txn_id] => 0
    [paypal_response_txn_type] => 0
    [paypal_response_parent_txn_id] => 0
    [paypal_response_case_creation_date] => 0
    [paypal_response_case_id] => 0
    [paypal_response_case_type] => 0
    [paypal_response_reason_code] => 0
    [paypalresponse_raw] => 0
    [paypal_fullresponse] => 0
    [created_on] => 2021-04-09 12:00:03
    [created_by] => 0
    [modified_on] => 2021-04-09 12:00:03
    [modified_by] => 0
    [locked_on] => 0000-00-00 00:00:00
    [locked_by] => 0
)
Title: Re: Pending payment
Post by: AH on April 12, 2021, 14:14:19 pm
Yes that is fine and expected.

Now the IPN will come in and the order will be finalised.
Title: Re: Pending payment
Post by: davix10 on April 12, 2021, 15:15:39 pm
It has stayed that way since the order was placed, it never went on
Title: Re: Pending payment
Post by: AH on April 12, 2021, 16:20:10 pm
I have no idea what is wrong with your site - or your configuration

I suggest it is to do with your OPC.

Disable that in a test and see what happens then
Title: Re: Pending payment
Post by: davix10 on April 13, 2021, 07:55:29 am
Sorry but i didn't understand what i should disable
Title: Re: Pending payment
Post by: AH on April 13, 2021, 11:10:45 am
OPC
Title: Re: Pending payment
Post by: davix10 on April 13, 2021, 12:20:47 pm
Even disabling it does not change anything