VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: davix10 on September 27, 2019, 16:39:10 PM

Title: Paypal in pending
Post by: davix10 on September 27, 2019, 16:39:10 PM
Hi everyone, I have a problem with the VM Payment-Paypal.
After payment is made on paypal the status of the order remains pending. How is it possible? even when the payment has been successful and the customer receives a regular confirmation from PayPal.
Successful transactions are set to "accepted".

Can you help me please?

Thanks
Title: Re: Paypal in pending
Post by: StefanSTS on September 27, 2019, 17:38:45 PM
http://forum.virtuemart.net/index.php?topic=79800.0
Title: Re: Paypal in pending
Post by: davix10 on September 30, 2019, 12:21:42 PM
Sorry, my version is VirtueMart 3.6.2 10159

Thanks
Title: Re: Paypal in pending
Post by: GJC Web Design on September 30, 2019, 13:35:36 PM
There are plenty of posts on here about the steps to take to debug this.
I myself have answered many similar questions .. please use the search provided
Title: Re: Paypal in pending
Post by: davix10 on September 30, 2019, 16:10:07 PM
Please, can you show me a guide?

Thanks
Title: Re: Paypal in pending
Post by: StefanSTS on September 30, 2019, 16:20:52 PM
The guide:
Google: virtuemart paypal documentation
Title: Re: Paypal in pending
Post by: GJC Web Design on September 30, 2019, 17:40:55 PM
or google

forum.virtuemart.net: paypal not confirming

forum.virtuemart.net: paypal ipn

etc etc ..  to receive help it is normally expected that you are proactive as well
Title: Re: Paypal in pending
Post by: davix10 on October 01, 2019, 10:31:33 AM
I tried the sandbox mode and had no problems, the order is confirmed correctly. When I switch on production mode I had the order in "pending".
This is my log:
2019-10-01 08:20:42 DEBUG plgVmConfirmedOrder: order number: 1D2K013
2019-10-01 08:20:42 MESSAGE plgVmConfirmedOrder: Amount/Currency stored 21.1 paymentcurrency 47 orderusercurrency47
2019-10-01 08:22:08 DEBUG plgVmOnPaymentResponseReceived: stdClass Object
(
    [id] => 22
    [virtuemart_order_id] => 24
    [order_number] => 1D2K013
    [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] => 21.10000
    [payment_currency] => 47
    [email_currency] => 47
    [cost_per_transaction] => 0.00
    [cost_percent_total] => 0.00
    [tax_id] => 0
    [paypal_custom] => e41bd8151625d89a4e4687adcb535311
    [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] => 2019-10-01 08:20:42
    [created_by] => 0
    [modified_on] => 2019-10-01 08:20:42
    [modified_by] => 0
    [locked_on] => 0000-00-00 00:00:00
    [locked_by] => 0
)
Title: Re: Paypal in pending
Post by: GJC Web Design on October 01, 2019, 11:00:02 AM
most of the vars in DEBUG plgVmOnPaymentResponseReceived are empty.. why?

Investigate your paypal account IPN responses
Title: Re: Paypal in pending
Post by: davix10 on October 01, 2019, 11:34:34 AM
How can I do? because I've only seen methods to use debug but that works.

Thanks
Title: Re: Paypal in pending
Post by: GJC Web Design on October 01, 2019, 12:51:33 PM
please use the SEARCH!

http://forum.virtuemart.net/index.php?topic=143325
Title: Re: Paypal in pending
Post by: davix10 on October 01, 2019, 14:05:56 PM
Sorry but I don't know where to start to solve this problem and I don't even know what to look for.
I discovered I had ipn notifications disabled on my paypal account.
Problem solved.

Thanks a lot!