VirtualMerchant plugin pass name(s) of product(s)

  • Posts: 20
  • Thank you received: 0
9 years 3 months ago #211746

-- HikaShop version -- : 2.5.0
-- Joomla version -- : 3.4.1

Need to modify VirtualMerchant plugin so that the name(s) of product(s) purchased are passed through to Elavon/Virtual Merchant. How can this be done?

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
9 years 3 months ago #211748

Hi,

Here is the integration documentation for the payment gateway Virtual Merchant:
www.myvirtualmerchant.com/VirtualMerchan...d/developerGuide.pdf

As you will see reading the hundreds of pages, there is no information there regarding the possibility to include the order products details when sending the order data to VirtualMerchant.
So I don't see a way to do that for that payment gateway as their API doesn't allow for it, unlike other payment gateways like Authorize.net or PayPal.

Please Log in or Create an account to join the conversation.

  • Posts: 20
  • Thank you received: 0
9 years 3 months ago #211793

That's strange because before we upgraded to the new version of HikaShop, we used a no longer compatible plugin that sent product names through. So Virtual Merchant allows it; the problem seems to be with the plug-in.

I've confirmed this with the Virtual Merchant folks.

Is there any way to get in touch with whomever developed the plug-in?
Thanks

Please Log in or Create an account to join the conversation.

  • Posts: 20
  • Thank you received: 0
9 years 3 months ago #211843

please see attached - shows how custom fields can be added to what's passed to VirtualMerchant, and our example showing that Product was added.

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
9 years 3 months ago #211853

For the past three years (as far as I can go back on our end) the VirtualMerchant payment plugin that is included in HikaShop has not been sending any product name to VirtualMerchant.

If you were using a plugin from another developer than us, then maybe that would explain that, but the plugin we have on our end has always been like that.

If the VirtualMerchant folks say that their API supports it, then I would love it if they could tell us how it's done because I couldn't find any documentation about it.
In your last message, there is no attachment so I couldn't see anything.

Please Log in or Create an account to join the conversation.

  • Posts: 20
  • Thank you received: 0
9 years 3 months ago #211970

Hopefully the attachment will go through this time!

Product is available as a custom field (which can be added within VirtualMerchant as shown on the screen print). Other custom fields can be added as well. Those fields that don't say "System Field" are custom fields, added by clicking on the "Add New Field" button within each section.

Please Log in or Create an account to join the conversation.

  • Posts: 20
  • Thank you received: 0
9 years 3 months ago #211982

Not sure if the attachment ever went through to you after I uploaded it.

Here is a copy/paste of the Terminal within Virtual Merchant:
Payment Field Setup
Order Section Required OrderSection System Field
Amount Yes ssl_amount System Field
Reference Type No ssl_customer_code System Field
Product No Product
Invoice Number No ssl_invoice_number System Field
Credit Card Number Yes ssl_account_data System Field
Expiration Date(MMYY) Yes ssl_exp_date System Field
CVV2 Indicator Yes ssl_cvv2cvc2_indicator System Field
CVV2 Yes ssl_cvv2cvc2 System Field
Sales Tax No ssl_salestax System Field
Approval Code Yes ssl_approval_code System Field
Start Date Yes ssl_start_date System Field
Billing Cycle Yes ssl_billing_cycle System Field
Next Payment Date Yes ssl_next_payment_date System Field
Last Payment Date Yes ssl_last_payment_date System Field
Number Of Payments Yes ssl_number_of_payments System Field
Comments No ssl_description System Field
End of Month No ssl_end_of_month System Field
Bill on Half No ssl_bill_on_half System Field
Skip Payment No ssl_skip_payment System Field

Billing Address Required BillingAddress System Field
Company No ssl_company System Field
First Name Yes ssl_first_name System Field
Last Name Yes ssl_last_name System Field
Address1 Yes ssl_avs_address System Field
Address2 No ssl_address2 System Field
City Yes ssl_city System Field
State/Province Yes ssl_state System Field
Postal Code Yes ssl_avs_zip System Field
Email Address Yes ssl_email System Field
Country No ssl_country System Field
Phone No ssl_phone System Field


Within each section (e.g., Payment Fields), there's the option to click on a button called "Add a New Field." In our case, we added the Product field (ages ago). As you can see, it's not labeled as a "System Field" (because it's a "custom" field).

So we just need to add coding to pass this system field!

Here's what the representative from Virtual Merchant/Elavon/Converge told me:
API can pass custom fields as long as they’re added into the custom fields section of the customer’s Terminal – Payment Fields section. ( Payment Fields in the Terminal section of myvirtualmerchant.com/Converge.) Note that custom fields can be added via the “Add New Field” button. The column to the right labeled “System Field” shows whether the fields are integrated as system fields or custom fields. Note that the Product field is blank under System Field column, indicating that it is a custom field.

To send the custom fields to Virtual Merchant, a developer must add code in the API code section with the custom field names and the information (in this case, ssl_product and the information that goes along with it, the same way that the credit card information is passed via ssl_accountdata).

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13374
  • MODERATOR
9 years 3 months ago #211987

Hi,

So what they are saying is that to pass additional data to Virtual Merchant the merchant has first to configure custom fields in his virtual merchant account and then have the integration plugin fill in those fields with the corresponding data.
So that means that every merchant can potentially have different fields for different data to be passed.

First, as I said before, this has never been supported by the VirtualMerchant plugin so it's not possible that an update of HikaShop removed that.

And second, I don't see an easy way to make that generic. And it will be really ugly. Because you need to have one field per product, and then, how do you handle the quantity of each product, the options of the products the characteristics, the custom fields entered, etc. Sure it could be hacked into the payment plugin for your specific case. But in that case, that's custom development. You can do that in the code of the file plugins/hikashoppayment/virtualmerchant/virtualmerchant.php
Here is our developer documentation:
www.hikashop.com/support/documentation/6...r-documentation.html
If you need a developer to help you with the modifications, you can contact our partners and request a quote:
www.hikashop.com/home/our-partners.html

Please Log in or Create an account to join the conversation.

Time to create page: 0.067 seconds
Powered by Kunena Forum