News:

Support the VirtueMart project and become a member

Main Menu

[SOLVED] - VM3 paypal sandbox configuration

Started by 15pablo8400, October 16, 2016, 19:26:59 PM

Previous topic - Next topic

15pablo8400

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
(
   
  • => 173.0.82.126
    )
    2016-10-16 16:57:35 DEBUG checkPaypalIps REMOTE ADDRESS: 173.0.82.126
    2016-10-16 16:57:35 ERROR validateIpnContent: Invalid IPN validation: NO ANSWER FROM PAYPAL
    2016-10-16 16:57:35 DEBUG validateIpnContent: valid_ipn:

    What's wrong?
    Can anyone help me to configure this payment method?

    Thanks

jenkinhill

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
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

15pablo8400

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

GJC Web Design

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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

15pablo8400

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?


GJC Web Design

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?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

15pablo8400

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


jjk

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.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

15pablo8400

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 :(



GJC Web Design

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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

15pablo8400

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

15pablo8400

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.


GJC Web Design

just goes to confirm nothing in life is free... this 'free' space has cost you a day of frustration
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

15pablo8400

Really true [emoji17] All experience for next time, thanks [emoji1]


Inviato dal mio iPhone utilizzando Tapatalk