We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Creating custom PHP payment form

Development and Programming

Nico7799's avatar
Nico7799
2 posts
14 years ago
Nico7799's avatar Nico7799

Hi all,

Im completely new to EE (I did work with CodeIgniter before). Im a developer about to start working on an EE client site. I’ll have to create a custom PHP form that will process a CC payment with a payment processor. We’ll not be storing anything on our database. We’ll send the payment information to the processor and get the results.

But im not sure were to start. Should I create a module or an extension for this? or just to embed some PHP in the template? I would appreciate if anyone can point me in the right direction.

Thanks, Nico

       
the3mus1can's avatar
the3mus1can
426 posts
14 years ago
the3mus1can's avatar the3mus1can

You could go the custom PHP in a template approach which would be the path with the least amount of friction. Or you could build a simple plugin or module. In that case the Function class will be your best friend.

       
Dave @ Exp:resso's avatar
Dave @ Exp:resso
465 posts
14 years ago
Dave @ Exp:resso's avatar Dave @ Exp:resso

Or you could just use exp:resso store (exp-resso.com/store), it’d manage something like this easily

       
Nico7799's avatar
Nico7799
2 posts
14 years ago
Nico7799's avatar Nico7799

Thanks both!

Assuming I go with the “custom PHP in template” path, could you give me some pointers on how to get started? Im a little lost.

  • The HTML form goes directly in the template and not inside a “published” content, right?
  • And all PHP processing code will be in that same template? I can’t have a separate .php file to process the form?
  • What about valition? I used Codeigniter’s validation before and jquery…but not sure how to implement that here.

Any tips? Thanks a lot!

Nico

       
Dave @ Exp:resso's avatar
Dave @ Exp:resso
465 posts
14 years ago
Dave @ Exp:resso's avatar Dave @ Exp:resso

You could look at our open-source CI merchant library (https://github.com/crescendo/ci-merchant) for gateway integration code. If you’re not sure how to do this, then it doesn’t really make sense building it yourself when you could spend a fraction of the time/money just using an e-commerce system. Just my 2 cents though 😊

       
Nico7799's avatar
Nico7799
2 posts
14 years ago
Nico7799's avatar Nico7799

Thanks!

I have integrated several gateways processors before into normal PHP, so that’s not a problem. I was looking for some pointers on how to integrate it with EE in particular, since I don’t know enough of EE.

It’s a client website, so I have to work with the system they are using of course.

Should I be asking this questions in another section of this forum?

Thanks again for your time! Nico

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.