VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: some0ne on April 04, 2016, 09:52:25 AM

Title: Variables in custom creditcard payment method
Post by: some0ne on April 04, 2016, 09:52:25 AM
Hi, our bankaccount has a 3rd party payment system what we have to integrate in VM.

In Virtuemart > Payment Methods I added a new payment option: Creditcard payment
In the configuration tab I added the code I got from my bank:
###WHATTODO###

<form method="post" name="aform" accept-charset="UTF-8"
action="bank url">
<input type="image" src="image.gif" name="submit" alt="Pay with CreditCard" />
  <input type="hidden" name="ordernumber" value="###ORDERID###" />
  <input type="hidden" name="amount" value="###ORDERTOTAL###" />
  <input type="hidden" name="lang" value="###LANGUAGE###" />
  <input type="hidden" name="merchantid" value="customer" />
  <input type="hidden" name="name" value="###USERNAME###" />
  <input type="hidden" name="currency" value="EUR" />
  <input type="hidden" name="clientemail" value="###USEREMAIL###" />
</form>

Now the problem I have is that there is no data in this placeholders > ###ORDERID###, ###ORDERTOTAL### etc. how can i get this values?
I use Joomla! 3.5.0.

Best,

sOmeone


Title: Re: Variables in custom creditcard payment method
Post by: GJC Web Design on April 04, 2016, 10:54:41 AM
you need a proper integrated payment plugin for this to take the values form the system as per all payment plugins
Title: Re: Variables in custom creditcard payment method
Post by: some0ne on April 04, 2016, 13:51:51 PM
Ok thank you GJC Web Design, if someone has the same problem:
> I modified the standard payment options where I used the payment_name field and replaced the string variables i added with the shop variables.
>> works like a charm  :)

So there is no extra plugin needed!