VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: fkang on October 30, 2017, 00:12:51 AM

Title: How to run end to end tests ?
Post by: fkang on October 30, 2017, 00:12:51 AM
Hi,

I am about to deploy a eCommerce website so my client can start testing and I am wondering how to run test until receiving an invoice without spending any money.
The wsbsite wlll use Paypal, but even if I set "on stage" in settings, I am redirected to paypal.

So, how you gguys usually run end to end tests ?

My config:
Joomla! 3.8.1
VirtueMart 3.2.4
PHP 7

THanks :)
Title: Re: How to run end to end tests ?
Post by: jenkinhill on October 30, 2017, 00:15:46 AM
Use PayPal sandbox.   
http://docs.virtuemart.net/tutorials/28-plugins-payment-shipment-and-others/116-setting-a-testing-environment-in-paypal.html
http://forum.virtuemart.net/index.php?topic=122595.msg418288
Title: Re: How to run end to end tests ?
Post by: fkang on November 04, 2017, 22:35:52 PM
Hi

thanks for the feedback. however, I tried to create a sandbox account, but either they are not created, or they are still processing (for more than 72hours now).
I tried to contact the support, but no feedback.
So is there any other to run end to end tests from purchasing to receive invoice without spending money ?

THanks
Title: Re: How to run end to end tests ?
Post by: AH on November 05, 2017, 10:19:23 AM
You have not said whether you are doing this on a live or test environment (but I provide some information that may help)

To run an end to end test with PayPal you need to create a PayPal sandbox account as Jenkin has said in his post below.

PayPal sandbox accounts are under PayPal's control - you should ensure that you fully understand PayPals systems before using them and this should include using PayPal sandbox testing.  You should not need to contact PayPal for a sandbox account.

You can still test the purchase process including invoicing using the Standard payment (not that this is all done on your own server - so there are no IPN messages to consider)

Create a payment method e.g. Cash on delivery that uses the Standard payment method plugin

Assign this to the shoppergroup that your test account belongs to

Then raise an order and confirm. 
Title: Re: How to run end to end tests ?
Post by: GJC Web Design on November 07, 2017, 00:22:58 AM
Or test live with a 1 cent product and free shipping... 
Title: Re: How to run end to end tests ?
Post by: Jörgen on November 07, 2017, 06:44:14 AM
Yes, One cent purchase will work, just have to have two Paypal accounts. This is actually only a problem if it is Your own shop. You are not allowed to buy from yourself.

regards

Jörgen @ Kreativ Fotografi