Creating new payment gateway and adding it to spree

2,261 views
Skip to first unread message

Spree Developer

unread,
Mar 12, 2014, 11:21:49 AM3/12/14
to spree...@googlegroups.com
Hi,

I am very new to spree.i am basically a java developer. due to some requirement i need to write a new payment gateway in spree. There is payment gateway present in active merchant so basically i will have to use active merchant and create a wrapper in spree, Can some one please explain how where to begin, and how to integrate in details. All i have now is spree installed and running on my local as my_store. i need to know from beginning what to do with the once i write a small ruby file which has wrapper code for active merchant library.

Thanks,

Washington Luiz

unread,
Mar 12, 2014, 11:47:51 AM3/12/14
to spree...@googlegroups.com
You could take a look at the existings wrappers we have in spree_gateway. https://github.com/spree/spree_gateway/tree/master/app/models/spree/gateway

hopefully that should help you get started
--
Washington L Braga Jr

Developer
Spree Commerce, Inc.

Spree Developer

unread,
Mar 12, 2014, 11:57:05 AM3/12/14
to spree...@googlegroups.com
Thanks, I went thru one gateways over there and created clone of one existing and just changed the code for my active merchant module, All i have now is .rb file. how should i go from here.

Spree Developer

unread,
Mar 12, 2014, 12:58:40 PM3/12/14
to spree...@googlegroups.com
Hi,

Can any one please help to proceed further. i just created a new payment model (i.e xxxx.rb file). how to install/integrate with spree. i need the complete details as i am new to spree.

Thanks.

Washington Luiz

unread,
Mar 12, 2014, 2:50:10 PM3/12/14
to spree...@googlegroups.com
Here's how you could insert you custom gateway into spree config list so that it shows up on backend payment methods list.

http://guides.spreecommerce.com/developer/payments.html#adding-your-custom-gateway

Tanmay Khandelwal

unread,
May 7, 2014, 4:01:15 AM5/7/14
to spree...@googlegroups.com
@Spree Developer: I am in the same situation as yours. I want to integrate PayUMoney payment gateway to my spree site (www.tailoringhouse.com) but I don't know how to proceed. I have made a payumoney.rb (after referring other payment gateway files like Worldpay.rb etc) file in spree_gateway gem inside models/spree/gateway/.

Can you tell me how did you integrate your custom payment gateway? I have payment gateway API ready with me.

Daejuan Jacobs

unread,
May 7, 2014, 11:39:29 AM5/7/14
to spree...@googlegroups.com
Take a look a various gateway extensions, and see how the extensions work. I looked at the following when creating my payment extension.


You probably want to create a ruby library that can be used in your extension. Such as https://github.com/paypal/sdk-core-ruby

I created a wrapper API for the my payment gateway. This gateway is then used by the spree extension.

Gaurav Shah

unread,
May 7, 2015, 12:06:11 PM5/7/15
to spree...@googlegroups.com
@Tanmay,

Were you successful in creating payumoney gateway for spree ?
Can you help me in building the same ?

Thanks
Reply all
Reply to author
Forward
0 new messages