News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

PAYMENT INTEGRATION

Started by samuel fisher, September 07, 2015, 15:34:52 PM

Previous topic - Next topic

samuel fisher

I am trying to integrate a new payment system on my virtuemart store. My bank gave me an API as follows..

Create a HTML form in the referring web page that contains a few mandatory fields.

1.1 Form Creation
1.   Create a form in the location that the "Pay" button should appear
2.   Set the form's action to <URL to be provided>
3.   Set the form's method to POST
4.   Create a hidden fields shown the table below, note that only 7 fields are mandatory .i.e. product_id, amount, currency, site_redirect_url, txn_ref, hash and pay_item_id
5.   Create a submit button in the form.


I do not know how to go about this. .

I am using Joomla 2.5 and Virtuemart version 2.6.14

Any help is highly appreciated

GJC Web Design

You need to build a proper payment plugin to integrate with the VM checkout procees.
There are plenty bundled with the std. VM .. you use those as code examples
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

samuel fisher

Quote from: GJC Web Design on September 07, 2015, 20:38:28 PM
You need to build a proper payment plugin to integrate with the VM checkout procees.
There are plenty bundled with the std. VM .. you use those as code examples

Thank you for your reply. could you please clarify me on how to do this? i am a beginner in virtuemart. I really appreciate this.

GJC Web Design

If you don't have the skills then the normal approach is you employ some one to do it..  same as when the washing machine breaks..   ;)
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

samuel fisher

Quote from: GJC Web Design on September 10, 2015, 10:23:23 AM
If you don't have the skills then the normal approach is you employ some one to do it..  same as when the washing machine breaks..   ;)

That's understandable.. but I do have the willingness to learn ,as i'm in love with virtuemart and plan to use it a lot.

GJC Web Design

then pull apart a standard washing machine -- oops sorry.. VM payment plugin (Authorize plug is a good place to start) and see how it works

It is all standard php/Joomla coding ..
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

samuel fisher

Quote from: GJC Web Design on September 11, 2015, 00:15:28 AM
then pull apart a standard washing machine -- oops sorry.. VM payment plugin (Authorize plug is a good place to start) and see how it works

It is all standard php/Joomla coding ..

This is actually what i'm trying to learn.. Looks like you won't, can't , or don't want to help. Anyways, thanks for trying at least.

GJC Web Design

My hedges need cutting.. if you come round on the weekend and help, I'll help you do your job.. fairs fair..  :)
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

jenkinhill

#8
Or there are plenty of PHP courses, eg http://www.w3schools.com/php/ is but one option.
Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

balai

#9
A good start is to try to understand the structure of the joomla plugins
Have a look here
https://docs.joomla.org/J3.x:Creating_a_Plugin_for_Joomla

Plugins follow the observer pattern. In short during the runtime a function (event) triggers another function in each of the plugins (observer) in the same category (e.g vmcustom).
Hence plugins in the same category (e.g. vmcustom) should have the same functions.

So in your case a good start is to open an existing payment plugin and copy it's functions. Then just change the logic inside the functions to make it fit your needs.

p.s. Guys let's calm down.
I suppose that our participation to the forums is done by good intention at our free time. If someone has not the time to answer why should he do that?