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. :)
study the bundled Skrill plugin .. this is probably the simplest to understand
plugins\vmpayment\skrill\skrill.php
The base is here :
http://dev.virtuemart.net/projects/virtuemart/wiki/Payment_plugins
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. :)
yes- standard isn't a payment.. it just stores the order and redirects to the thank you..
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? :)
all in the skrill....
function plgVmConfirmedOrder ($cart, $order) {
Quote from: GJC Web Design on November 13, 2015, 23:02:28 PM
all in the skrill....
function plgVmConfirmedOrder ($cart, $order) {
Thank you man. ;)
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
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!
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)?
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
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. :)
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
Ok, thanks anyway. ;D