Form with payment integration

doeringa

15-10-2015

Hi, 

I need to implement an adaptive form that redirects the user to a payment provider on submit (sending through only a subset of the entered data). Once the user payed, he will be redirected back to AEM. The payment provider will return with either an OK (with additional payment confirmation data) or a NOT OK. Happy path will need to trigger an email with a PDF containing all of the entered fields and redirect to a Thank You Page. Sad path will need to redirect to the same form page with an error message and the previously filled field data. 

Question I have is which is the best way to get all this setup with using the OOTB Forms? Should I create a custom submit action that goes to a custom servlet which will redirect to the payment provider? But since I am redirecting out half way through the form processing, where do I keep all of the entered fields meaning how can I retain the session in order to have the data available for the pdf or the error form page?

Any help is much appreciated. 

Thanks, Alex

View Entire Topic

deepak_k_

Employee

28-10-2015

I think you can save partially filled data as Draft using Adaptive Forms draft feature and do custom submission which does payment gateway integration and signing. Post sign, you can fetch data from draft and remove the draft.