Skip to main content
Hi, 

 

we are using Elavon for payment processing using salesforce communities. 

 

For payment response we have written a VF page(say PAymentresponse) which captures the Transaction id and payment status and stores the transaction in salesforce on page load( used <apex:page contro.... action="{!init}">). 

 

 This part is taking more than 45 seconds to execute the script (vf page) .

 

  When we add any runtime exception in script (vf page init method) response is quick.

 

 I changed dml methods to run asyncronusly (future) still script is taking long time to callback.

 

Please let us know your ideas how to fix it?

 

or if anyone worked on payment response please share your knowledge.

 

 
1 个回答
  1. 2017年1月10日 13:55
    If it is taking a long time for a transaction to confirm using your payment processor, you may want to have your page in salesforce have a refresh function until the payment is confirmed.  This would mean you keep your api transaction confirmation in async block, but then have the page use a javascript refresh or javascript remote to check the transaction status until it's done and provide the user a "processing, please wait..." type of message.

     

    I haven't used Elavon, but that is what I've done for other slow payment processors.
0/9000