VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: rayge on April 11, 2012, 17:06:20 PM

Title: Beanstream Payment Gateway
Post by: rayge on April 11, 2012, 17:06:20 PM
Does anyone have or know where i can get the beanstream payment gateway plugin for VM 2.0?
If not I will have to write one which could take days and I dont really want to mess with it to be honest as i haven't coded a payment gateway for VM before.

UPDATE: I have written the plugin and is available for download here. Remember to login to see the attachment.
Install through the Joomla extension manager.
Then search for and enable the plugin VM Payment - beanstream
at that point you can go into virtuemart and add a new payment processor and beanstream will show up.

[attachment cleanup by admin]
Title: Re: Beanstream
Post by: mjel on April 11, 2012, 21:18:48 PM
Hello,

I need the same - I had a payment plugin developed for a client for 1.1.x - but as i understand - vm 2.x being a total rewrite - that the payment plugin needs to be developed again from scratch.

the development company I used specialize in making payment plugins - and they have a system where you sponsor the development of the plugin for 200 - and they develop it at that cost (normally would be more than 200) then they sell it on their site for approx $30 ---

would you like to share the cost of this plugin development?

PM me here if you would -
Title: Re: Beanstream
Post by: rayge on April 11, 2012, 23:30:00 PM
since i only have 2 days I think i will be trying to code it myself. If i can get it working I would like to release it in some way to the group.
Title: Re: Beanstream
Post by: mjel on April 12, 2012, 00:29:40 AM
Hello,

It seems this version of virtuemart is more commerical than the last with respect to payment plugins and shipping modules -- not a bad idea since the cost is usually pretty low - i dont' think the dev that is set to do the work can turn it around that fast - would love to have a look at what you do should you get it working - perhaps an extension on the main joomla extenstions website would be good - I can contribute $50 to you if you devlelop a working plugin that i can use --

are you planning on using the hosted payment page - or will you process within your site? -- i think you can wrap the hosted payment page in your site - and remove the liablity of storing credit card data without takign the user away from your site???

let me know if I can assist in any way - i ha
Title: Re: Beanstream
Post by: rayge on April 12, 2012, 01:00:46 AM
Well i looked at the api PDF document here
https://files.pbworks.com/download/BPdNV8DJKk/beanstream-manuals/37592606/BEAN_API_Integration.pdf?ld=1
and saw sample PHP code using CURL which is what Authorize.net requires as well.
This would keep us from having to use a setup like paypal where you are redirected and instead it just stays on the site. (I hope)

so im duplicating the plugin used for auth.net and modifying it for use for beanstream and this sample code.
The admin side of it is complete as far as requirements I believe all you need is the merchant id as far as that is concerned.
I have a sandbox merchant ID so i can test away.
the hard part may be testing some purchases and logging the responses.

Fingers crossed that I can get it working :P
hope all that made sense!
Title: Re: Beanstream
Post by: rayge on April 13, 2012, 02:18:36 AM
I was able to build off the auth.net payment gateway and successfully test some purchases through a sandboxed beanstream account.
for the most basic of processes I can say i have a completed payment gateway for beanstream.

You mentioned you had a script written for the 1.1x version of VM.
would you be willing to let me look at it JUST for the fact that there are so many message codes Im not quite sure how to handle them since they are for different circumstances.

Title: Re: Beanstream
Post by: mjel on April 13, 2012, 03:38:25 AM
I did send this to you via email -- did you get that?

i think i can attach it here

give this a try - it was functioning when I last used it on joomla 1.5 - vm 1.1.9



[attachment cleanup by admin]
Title: Re: Beanstream
Post by: rayge on April 13, 2012, 04:14:32 AM
Weird no i didnt get anything. and ok i downloaded it. I will look and see if there is anything i can incorporate into this then i will zip mine up and post it here too.
Title: Re: Beanstream
Post by: rayge on April 13, 2012, 14:25:45 PM
mjel
Looks like they used a different approach than I did so really i didnt see anything i could use. Maybe thats a GOOD THING?  :)
anyway Ive attached the plugin.
I have only tested it using a sandboxed merchant id only but i HAVE added (UNTESTED)
the ability for an API username and password
as well as MD5 Hash
I am releasing this as OPEN SOURCE and I URGE any developers to please see if this can be improved upon as I will not be handling support for this but I may take suggestions to improve it.
Title: Re: Beanstream
Post by: mjel on April 13, 2012, 18:29:50 PM
Great,

I would like to assist you in support this via a support forum or something of that nature so that the community can provide support rather than you as you have stated.

I like Beanstream and will guide all my clients to use Beanstream and VMart for the ecommerce solution.

I will test away and give you any testing feedback I have - i have a sandbox account as well with Beanstream.

sorry to ask for support - but trying to figure out how to install - i installed the zip using the standard joomla installer which successful installed - but i don't see it in the dropdown when i created a new payment method - could you shed some light on how you have set this up
Title: Re: Beanstream
Post by: rayge on April 13, 2012, 18:32:38 PM
Its just like any other plugin. once installed it is disabled by default. find and enable it in the plugins list.
Title: Re: Beanstream
Post by: mjel on April 13, 2012, 18:34:10 PM
I see - I am liking this new version of joomla and vmart -- great foundation and great improvements.

Look forward to collaborating with you further - i build on joomla platform almost exclusively and am very busy development business based around open-source.
Title: Re: Beanstream
Post by: mjel on April 13, 2012, 19:04:02 PM
Great - i have the plugin published and added as  a payment method -

i have logged into my beanstream sandbox account - and created a hash key and checked the box for this value to be used for validation --

however - when i configure my beanstream account info (company login, user login/pass, hash key -- and hit save --- the company login value stays - but the user/pass/hash values are not saved --- did you get this ??
Title: Re: Beanstream
Post by: mjel on April 13, 2012, 19:08:26 PM
I should have noted,

the labels are looking like they are not reading - i assumed that you just had not got to this point yet but perhaps i may have permissions issues that are messign up the saving of my parameters

VMPAYMENT_BEANSTREAM_MERCHANT_ID   
VMPAYMENT_BEANSTREAM_API_USER   
VMPAYMENT_BEANSTREAM_API_PASS   
VMPAYMENT_BEANSTREAM_MD5_HASH


????
Title: Re: Beanstream
Post by: rayge on April 13, 2012, 19:24:45 PM
Hmm maybe the language file didnt get copied?
Title: Re: Beanstream
Post by: mjel on April 13, 2012, 19:26:45 PM
for reference sake - i am installing this instance on a godaddy shared hosted account
Title: Re: Beanstream
Post by: rayge on April 13, 2012, 19:29:27 PM
Check the zip for en-GB.plg_vmpayment_beanstream.ini
and see if those variables are in it.
the show up for me and work fine.
Title: Re: Beanstream
Post by: mjel on April 13, 2012, 19:44:12 PM
Must have been a permission issue -- I a manually uploaded the language file and it is show well.

however, I am unable to save the login/pass/hashkey - any idea what the cause of that would be - very close here to be able to test the plugin -

thanks much for your assistance - I am happy to help others once i get this going
Title: Re: Beanstream
Post by: rayge on April 13, 2012, 20:03:44 PM
OK I hadnt tested the username pass and hash casue MOST TIMES all you need is the merchant id but I am seeing the same issue.
I had assumed it would save but i didnt try it.
Let me fix it and i will upload a new file. you will then uninstall the plugin check the database that a table called
virtuemart_payment_plg_beanstream
is GONE
then install the new file.

I moved the attachment to the first post to make it easier to find. give it a try.
Title: Re: Beanstream
Post by: binary on April 13, 2012, 22:04:39 PM
Thanks for the plugin.  I'm a coder, but not familiar with Virtuemart 2.0's infrastructure as much as I should be.

Can you tell me where I should be installing the plugin from your zip file in to my directory structure?

Thanks!
Title: Re: Beanstream
Post by: rayge on April 13, 2012, 22:11:47 PM
install like any component, module, plugin. Through extension manager. see updates to my first post.
Title: Re: Beanstream
Post by: mjel on April 14, 2012, 03:59:26 AM
update to my testing.

i sorted out a the correct parameters - and got a success 'approved' test -- looking pretty good so far - will keep testing

i will help to support this as much as I can so you don't have to --

thanks for including me in the initial stages of this plugin - love the open source community.
Title: Re: Beanstream
Post by: mjel on April 14, 2012, 04:08:59 AM
Results of Testing:

Using my sandbox account - i used the test 'declined' visa number - and the card was correctly declined - and when i followed the link to go back and change the credit card information - i was unable to edit the credit card information.

Do you think that this is a VM bug - or is there something on the plugin side that should allow you to edit the payment info?
Title: Re: Beanstream
Post by: rayge on April 14, 2012, 14:35:27 PM
well the link is using javascript which literally is like clicking the back button on your browser so it cant be the plugin causing any issues.
Title: Re: Beanstream
Post by: mjel on April 14, 2012, 16:02:44 PM
Great - will work that bug with the general VM cart -- your plugin seems to be working well

are we bypassing PCI compliance - i don't see the setting in VM 2 re: saving credit card data === I am assuming the that as long as one has SSL - that the cc data is just being collected and passed along to beanstream's hosted payment page - but kept within the joomla site -- I remember you mentioning that you built this based on the Authorize.net plugin -- which as I understand is not storing anything on the joomla site -

great work here for the community.
Title: Re: Beanstream
Post by: rayge on April 14, 2012, 16:48:08 PM
Yes this was literally coded off of the Authorize.net plugin available. and yes the cc data is not being stored. it is just being passed to beanstreams server behind the scenes.
Title: Re: Beanstream Payment Gateway
Post by: mjel on April 14, 2012, 16:49:11 PM
Great -- I think this will be useful for others to know - as I know the PCI compliance is becoming more of an issue as ecommerce progresses.
Title: Re: Beanstream Payment Gateway
Post by: rayge on April 14, 2012, 17:53:49 PM
TRUE anyone using this SHOULD have an SSL CERT and im suprised at how much the prices have gone up for one..
Title: Re: Beanstream Payment Gateway
Post by: mjel on April 14, 2012, 18:09:44 PM
I know godaddy has its weaknesses -- however - i have an 8/mth package setup for a client on my reseller package - and it includes the basis turbo ssl - which provide the https and verifies the domain - which is enough to secure the transfer of data from the user's computer to the beanstream --

godaddy seems to have improved on its shortcomings over the years - not good for sugarcrm - but good for joomla
Title: Re: Beanstream Payment Gateway
Post by: binary on April 25, 2012, 18:53:48 PM
I finally got around to testing this and we did get a successful test in the sandbox.  However in the configuration I'm getting this:

VirtueMart Parameters

creditcards   Element not defined for type = beanstreamcreditcards

Logos   Folder /images/stories/virtuemart/payment does not exist. You can create it, and place your images inside.
CVV images   Folder /images/stories/virtuemart/payment does not exist. You can create it, and place your images inside.

Now I can create the folders just fine, but what is the "element not defined for type = beanstreamcreditcards" ?  We can't seem to select a list of CCs when payment information is being entered and I'm sure this is a direct result of this error.


EDIT:  I did get it working.  I had to copy the elements directory to this location ~/plugins/vmpayment/beanstream/elements  .  For some reason the elements directory was placed directly in the ~/plugins/vmpayment/ instead.

Thanks!
Title: Re: Beanstream Payment Gateway
Post by: rayge on April 25, 2012, 19:36:37 PM
I did a total uninstall removing anything related to beanstream then found that the language file wasnt being copied in. I fixed the language file issue. I then tested the plugin adding CCs and it worked fine. i did see the lements folder being copied as well.

Please test this new file out by uninstalling the plugin and removing the language file then re installing and let me know how it does.
Title: Re: Beanstream Payment Gateway
Post by: mjel on April 25, 2012, 19:59:12 PM
I had the same issue if you recall - the I just uploaded the language file manually and all became good.

Title: Re: Beanstream Payment Gateway
Post by: rayge on April 25, 2012, 20:06:14 PM
Actually yes i do.. but i didnt know how to fix the problem until now :)
Title: Re: Beanstream Payment Gateway
Post by: mjel on April 25, 2012, 20:09:48 PM
I didnt notice - is there an updated version of the plugin reflecting this fix?
Title: Re: Beanstream Payment Gateway
Post by: rayge on April 25, 2012, 20:11:29 PM
YEs
Title: Re: Beanstream Payment Gateway
Post by: mjel on April 25, 2012, 20:17:14 PM
Am i missing an attachment - or do you have this on the virtuemart extensions page?
Title: Re: Beanstream Payment Gateway
Post by: rayge on April 25, 2012, 20:18:16 PM
IT is always on the first post.
currently is beanstream v1.0.2.zip
Title: Re: Beanstream Payment Gateway
Post by: mjel on April 25, 2012, 20:18:48 PM
great - i got it now
Title: Re: Beanstream Payment Gateway
Post by: philraymond on November 28, 2014, 09:04:04 AM
If anyone else is wondering about Beanstream, I tried the above plugin on Joomla 2.5.27 and Virtuemart 2.6.12.2 and couldn't get it to work, but this plugin ( http://forum.virtuemart.net/index.php?topic=101426.0 ) works for me perfectly and the support was great when I had an issue. Phil
Title: Re: Beanstream Payment Gateway
Post by: jurgen35 on January 26, 2016, 18:32:42 PM
Hello,

I have one website with joomla 2.5 and i use JomLand Ticket Center but anyone can help me how can I develop payment method Beanstream for JLTicketCenter. Please help me.

Thank you,
Jurgen
Title: Re: Beanstream Payment Gateway
Post by: jurgen35 on January 26, 2016, 18:34:55 PM
Hello,

I have one website with joomla 2.5 and i use JomLand Ticket Center but anyone can help me how can I develop payment method Beanstream for JLTicketCenter. Please help me.

Thank you,
Jurgen
Quote from: jurgen35 on January 26, 2016, 18:32:42 PM
Hello,

I have one website with joomla 2.5 and i use JomLand Ticket Center but anyone can help me how can I develop payment method Beanstream for JLTicketCenter. Please help me.

Thank you,
Jurgen
Title: Re: Beanstream Payment Gateway
Post by: GJC Web Design on January 27, 2016, 01:05:17 AM
Your question is unclear.. I have developed a payment plugin for VM3/J3 Beanstream.. is this what u are asking?