News:

Support the VirtueMart project and become a member

Main Menu

Custom Payment Method Develop: can you help me?

Started by Federcio2, November 13, 2015, 09:53:00 AM

Previous topic - Next topic

Federcio2

Greetings to all,
I'm starting to develop a new method of payment for VirtueMart 3.0.10 (use Joomla 3.4.0).
In practice, the customer, after "Confirmation Order", is re-directed to the payment site by a post xml/html containing the order data (amount, etc.).

What I do not understand, looking the other payment methods integrated, is how/where to save the data I need and then, such as Paypal, make the call to the external page, taking with him the order number, amount, etc.

Someone can help me?

I appreciate any suggestions / help.

Thanks to those who will be kind enough to spend some time for me. :)

GJC Web Design

study the bundled Skrill plugin .. this is probably the simplest to understand
plugins\vmpayment\skrill\skrill.php
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


Federcio2

Quote from: GJC Web Design on November 13, 2015, 21:48:52 PM
study the bundled Skrill plugin .. this is probably the simplest to understand
plugins\vmpayment\skrill\skrill.php

Today I looked at the standard payment. If I understand correctly, in this case, after checkout the order is processed but there is no payment.
It's interesting, because to me it would be enough that, after clicking on "confirm order", make a post xml/html which redirects to the page I want.
But if you tell me that Skrill is more intuitive, I'll look too. :)

GJC Web Design

yes- standard isn't a payment.. it just stores the order and redirects to the thank you..
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

Federcio2

Quote from: GJC Web Design on November 13, 2015, 22:54:02 PM
yes- standard isn't a payment.. it just stores the order and redirects to the thank you..

Okay, thanks. When the customer presses the button "confirm order", which could be the function that is used for the post xml/html? :)

GJC Web Design

all in the skrill....   

function plgVmConfirmedOrder ($cart, $order) {
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

Federcio2


Studio 42

Use debug, fonctionnality, or add break jexit('Im here');
We cannot do all the work for you. YOu have already main information to do your plugin

Federcio2

Quote from: Studio 42 on November 14, 2015, 00:05:22 AM
Use debug, fonctionnality, or add break jexit('Im here');
We cannot do all the work for you. YOu have already main information to do your plugin

Yep, ok. Thanks!

Federcio2

Uhm... In Skrill ConfirmedOrder, there is an iframe, right?
There is a way to make a post form parameterized as a redirect to external site (like Paypal)?

Studio 42

TO redirect, you have to submit by javascript on document load.
Fiil all the form with your values(all can be type=hidden) and add a Javascript submit(); in your HTML
DO not remove the submit button, else when ajavascript is not active, you cannot submit the form

Federcio2

Awesome. :) First step is ok.

Two questions for ya:

- How do I create the fields to fill in the payment settings, admin side?
- How can I create the installation of the plugin?

Thank you for all your helps. :)

GJC Web Design

Honestly.. I think you hit the limit of free help here..
Your questions aren't even VM related.. have you read ANY documentation on how to build a Joomla plugin?????

VM plugs are Joomla plugs
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

Federcio2