Forums

Integrating form with mal's ecommerce

BritBlokeComputers 02 Dec, 2014
I was wondering how I would go about integrating my form with an external payment processor (not available with the setup at present).

I want the form to be filled out by the user, them redirected to my payment processor and then if successful payment is made, the form info would be emailed, but if the payment is cancelled or fails in some way then the email would not be sent.

What options and settings would I need to add to get this to work.

I am very code savvy but new to Chrono Forms and not sure what to change where to tell the form to not submit the email until it has sent the form info to my processor for payment first and then when it receives a call back from my processor Mals Ecommerce to submit the email if successful payment has been made.

Thanks
GreyHead 02 Dec, 2014
Hi BritBlokeComputers,

The answer to your question is almost certainly 'Yes' - the difficult part is 'how'.

I've never heard of Mal's Ecommerce but typically payment gateways work in three different ways.

a) You redirect the user to the gateway to make the payment - like a basic PayPal payment. You can do this using the CF Redirect Action building the appropriate URL to send the user and the data there. Typically there is a return URL included to bring them back but you may not get immediate payment notification.

There are some variants on this version using auto-submitting forms or embedded PayPal buttons that work well in some circumstances.

b) You do more or less the same but with instant payment notification - typically this requires a hand-shake between your site and the gateway to confirm that the transaction is genuine and to get the official response in reply. You can set this up using a separate form event for the hand-shake transaction and probably using cURL to respond to the gateway.

c) You keep the user on your site, take the payment info there and then set up the necessary authorisations and confirmations with the gateway, Again you'll probably use cURL and one or more separate form events for this.

Bob
BritBlokeComputers 02 Dec, 2014
Mal's Ecommerce is a hosted shopping cart system that has various payment options built into it, it also allows you to make an ipn type call from the cart upon successful payment as well as redirecting back to a specific page after.

I just need a bit more specifics on the setup and code to use to be able to successfully pass the generate form info (lots of fields) to the cart using a post method and then allow the cart to send an ipn call back to the script (however that needs to be set up) with this info to send the email upon successful payment and then redirecting to the thank you page after.

I get what you are saying above and will look into it more but if you have any specific examples of code and setup for doing this where upon hitting submit the user would be taken to my externally hosted shopping cart passing the form info in a field using the post method and separating each field of content name and value pair with a unique separator so it can all be passed in one field to the cart and then separated when passed back to the script for the ipn call and the email is generated etc.

I see with PayPal everything is already set up in there for using their cart and payment and ipn but not 100% on what to add to create my own custom setup for Mal's.

I do know that the user will have to go to the site and do the cart on the other site and the payment gateway process etc and then be redirected back to the form script upon successful payment, rather than doing everything on site or using cURL etc.

I will look into it all more and see what I can figure out, any extra help, advice and examples in detail you or anyone else can offer would be great.

Thanks
GreyHead 02 Dec, 2014
Hi BritBlokeComputers,

If you can check Mal's documents and find out exactly what is needed then we can probably help you. If you check the FAQs you will find various examples of links to external sites or other services - they are all broadly similar. Most of them may be for CFv4 - the logic will be the same in CFv5 but the details of implementation are probably a bit different.

Bob
This topic is locked and no more replies can be posted.