Avatar of oo7ml
oo7ml asked on

PayPal PreApproved Payments

My site allows members to make a PreApproved payments to certain events.

The PreApproved payments are then processed at the end of the event (if the event goes ahead).

Up to now the events usually have about 20 x PreApproved payments and everything runs smoothly but i have a big event coming up very soon that could have over 200 PreApproved payments to process.

Is there anything that i need to look out for or put in place to make sure my site is able to handle all of the 200 payments smoothly. I know this is a difficult question to answer without seeing my code but i noticed that it takes about 4 seconds to process each payment and update the database once the payment trigger is called.
E-CommercePayPal

Avatar of undefined
Last Comment
oo7ml

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Andrew Angell

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER
oo7ml

Ok cool, thanks...

I have all error handling and failed payments handling in place and they all work fine with the usual payment processing of 20 payments...

My worry is that it takes about 4-5 seconds to process a payment and update the databases etc... so could some script timeout if it needs to process 200 of these?
Andrew Angell

Well, yes, that's something you'll need to manage.  You can test that sort of thing in the sandbox, though.  

You can either extend your timeout values in PHP on the server to allow scripts to run a long time, or you could set the script up to run in multiple pieces processing just a few at a time.
ASKER
oo7ml

Ok, i don't trust the Sandbox 100% ;-)

I don't think they operate 100% the same.

I will try processing 200 of them and see what happens, thanks again...
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
Andrew Angell

I use the sandbox all the time for stuff like that and it works out great.  That's what it's for.  Sometimes you'll run into little things that don't act the way they should, but I haven't run into anything like that in awhile now.
ASKER
oo7ml

Thanks, i will try it and see how it works out...