VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: 15pablo8400 on October 16, 2016, 19:26:59 PM

Title: [SOLVED] - VM3 paypal sandbox configuration
Post by: 15pablo8400 on October 16, 2016, 19:26:59 PM
Hi,
i'm using joomla 3.6.2 and virtuemart 3.0.14. I'm trying to configure a simply paypal sandbox for testing my payment on a site.
I've configured virtuemart payment method with paypal, also setting sandbox mode and insert my sandbox vendor business test mail.

I've completed with success a transaction on a site but there are 2 problem:
- Order in virtuemart it is always in "pendent" status
- Transaction in front end complete successfully with paypal sandbox and it return on my site, but i receive an error mail of transaction with these information:

2016-10-16 16:57:35 DEBUG PaymentNotification, paypal_data:: Array
(
    [handling_amount] => 0.00
    [payer_id] => 8MQ44SA42FD4W
    [address_country_code] => IT
    [ipn_track_id] => f1b4a9d59f24e
    [address_zip] => my postal code
    [invoice] => JX7F09
    [shipping] => 0.00
    [charset] => windows-1252
    [payment_gross] =>
    [address_status] => unconfirmed
    [address_street] => my address
    [verify_sign] => AFcWxV21C7fd0v3bYYYRCpSSRl31A17X-nLpW6HdY43FiwMMRujYYYTF
    [item_name] => Ordine Numero: JX7F09
    [test_ipn] => 1
    [txn_type] => web_accept
    [receiver_id] => NVV8AJ8GGGN8S
    [payment_fee] =>
    [mc_currency] => EUR
    [transaction_subject] =>
    [custom] => daeacf6k71tduchv4tfvsctga4
    [protection_eligibility] => Eligible
    [address_country] => Italy
    [payer_status] => verified
    [first_name] => test
    [address_name] => Fabio Di Giuseppe
    [mc_gross] => 1.00
    [payment_date] => 09:52:38 Oct 16, 2016 PDT
    [payment_status] => Completed
    [quantity] => 1
    [business] => pablo-venditore@tim.it
    [item_number] =>
    [last_name] => buyer
    [address_state] => PE
    [txn_id] => 1B935475ED250370V
    [mc_fee] => 0.38
    [resend] => true
    [payment_type] => instant
    [notify_version] => 3.8
    [payer_email] => pablo-acquirente@tim.it
    [receiver_email] => pablo-venditore@tim.it
    [address_city] => My city
    [tax] => 0.00
    [residence_country] => IT
)
2016-10-16 16:57:35 DEBUG PaymentNotification, order_number:: JX7F09
2016-10-16 16:57:35 DEBUG PaymentNotification, virtuemart_paymentmethod_id:: 1
2016-10-16 16:57:35 DEBUG checkPaypalIps SANDBOX: Array
(
   
Title: Re: VM3 paypal sandbox configuration
Post by: jenkinhill on October 16, 2016, 23:17:50 PM
Email error? A search would show this:  http://forum.virtuemart.net/index.php?topic=133760.0

You must use at least VirtueMart 3.0.16 with Joomla 3.5.1 and later. Current release is 3.0.18    http://dev.virtuemart.net/projects/virtuemart/files
Title: Re: VM3 paypal sandbox configuration
Post by: 15pablo8400 on October 17, 2016, 19:26:53 PM
Thanks for reply.
Yes, it's true my fault.

When i complete a transaction, an email will arrive to me (admin) with error information of transaction and direction to virtuemart paypal log file.
In a log file there are these information about transaction with error about Invalid IPN validation.

So ... is there only fault of my version of joomla and virtuemart?
I configured vendor paypal account with these information:
http://www.virtuemartrewardspoints.com/documentation/54-virtuemart-paypal-ipn-order-confirmation

but nothing. Now i will try to reinstall joomla 3.6.2 and virtuemart 3.0.18.

At now thanks, i will inform if i will solve
Title: Re: VM3 paypal sandbox configuration
Post by: GJC Web Design on October 17, 2016, 19:53:05 PM
personally I would first eliminate any unknowns by using a real paypal account and just do a 1 cent transaction ... 
have found Sandbox to act oddly sometimes
Title: Re: VM3 paypal sandbox configuration
Post by: 15pablo8400 on October 17, 2016, 20:03:13 PM
Thanks for reply me.
I've try with joomla version 3.6.2 and virtuemart 3.0.18 downloaded from a previously link (all in one version joomla + virtuemart).
Nothing :(

Mail error
Hello,

An error with your payment method paypal on your store Test. The details are logged in the file paypal.1.log.php

. The VirtueMart Team

In paypal.1.log.php there are these information :
2016-10-17 17:55:46 ERROR validateIpnContent: Invalid IPN validation: NO ANSWER FROM PAYPAL

same of previously test with old version.

Can anyone help me?
Thanks

P.s: @GJC Web Design : i would take these test but i've not a paypal business account for test it :( . Do you have another helps?

Title: Re: VM3 paypal sandbox configuration
Post by: GJC Web Design on October 17, 2016, 21:00:50 PM
I don't have further suggestions

the ip it is sending the IPN reply to is Paypal

NetRange:       173.0.80.0 - 173.0.95.255
CIDR:           173.0.80.0/20
NetName:        PAYPAL-SITE

but why Paypal doesn't respond I don't know.. local blocking at your end?
Title: Re: VM3 paypal sandbox configuration
Post by: 15pablo8400 on October 17, 2016, 21:13:33 PM
No :(
log are referred from 2 different net (telecom italia and Fastweb in two different place pescara and pesaro).
Maybe can it depends from hosting isp at now i'm testing on?
It's a free webspace hosting: altervista

Title: Re: VM3 paypal sandbox configuration
Post by: jjk on October 17, 2016, 22:32:37 PM
If I remember correctly, IPN doesn't work with the sandbox. If you want to test IPN, you probably have to read and then configure the IPN simulator:
https://developer.paypal.com/docs/classic/ipn/integration-guide/IPNSimulator/
However, you can probably avoid that work with doing a real 1 cent transaction, as GJC suggested above.
Title: Re: VM3 paypal sandbox configuration
Post by: 15pablo8400 on October 18, 2016, 08:21:40 AM
Ok,
i've transform my account paypal (no sandbox) from personal to business. I've changed address on VM configuration and i've set:

IPN urls
http://www.yousite.xyz/index.php?option=com_virtuemart&view=pluginresponse&task=pluginnotification&tmpl=component

Thank you page
http://www. yousite.xyz/index.php?option=com_virtuemart&view=pluginresponse&task=pluginresponsereceived

Transaction ok but order always in pendings and same log above :(


Title: Re: VM3 paypal sandbox configuration
Post by: GJC Web Design on October 18, 2016, 11:32:41 AM
out of ideas... no one else is complaining of this so it must be specific to your install

try another server etc

I assume u mean 2016-10-16 16:57:35 ERROR validateIpnContent: Invalid IPN validation: NO ANSWER FROM PAYPAL

this means the IPN was received, your site sent a response back to Paypal .. it never replied
Title: Re: VM3 paypal sandbox configuration
Post by: GJC Web Design on October 18, 2016, 12:03:20 PM
found this

http://forum.virtuemart.net/index.php?topic=133964.msg465019#msg465019
Title: Re: VM3 paypal sandbox configuration
Post by: 15pablo8400 on October 18, 2016, 18:36:24 PM
Yes, i saw last link forum post.

Yes, last chance , i'm trying changing server ... now i will test this on production server of my site.

Yes, IPN was received correctly and i can see it on paypal account... but very strange thing. I hope it was a server.

I will inform if i will resolve. Meantime i wrote an email both paypal and altervista to ask what it the problem.

Thanks
Title: [SOLVED] - VM3 paypal sandbox configuration
Post by: 15pablo8400 on October 18, 2016, 20:23:58 PM
Guys ... As you can see in the post title, i confirm that all depends from free space test used yesterday (altervista).

In register i can complete successfully a simply transaction without error with Paypal Production and Paypal sandbox.

Thanks to all ... very happy to resolve this problem.

Title: Re: [SOLVED] - VM3 paypal sandbox configuration
Post by: GJC Web Design on October 19, 2016, 00:29:43 AM
just goes to confirm nothing in life is free... this 'free' space has cost you a day of frustration
Title: Re: [SOLVED] - VM3 paypal sandbox configuration
Post by: 15pablo8400 on October 19, 2016, 08:44:29 AM
Really true [emoji17] All experience for next time, thanks [emoji1]


Inviato dal mio iPhone utilizzando Tapatalk