Payment API for Grails

試著忘記壹切 提交于 2019-12-03 05:57:12

There's a PayPal plugin

http://grails.org/Paypal+Plugin

Not used it myself though...

It looks like aggregation of payment providers is not commonly done, and there are no Grails libraries for doing this.

Grails Stripe Plugin might be worth a look. It doesn't deal with PayPal and Google Checkout, but allows direct credit card payments.

In response Alison's question on my snarky comment (sorry):

Do a search on something like "paypal horror stories" for nastiness on both sides of the fence (merchant and consumer). As an end user, I always have problem using my business credit cards with them. Instead, try something like http://authorize.net, http://www.braintreepaymentsolutions.com/, or http://www.zuora.com/index.html. All of these have language specific libraries to help you.

I don't think you will find a library that abstracts away multiple gateway. I haven't seen any and they all do things just a bit differently that it would make things difficult. Regardless, it isn't that much code to write or customize from their provided libraries.

Personally, I go with authorize.net for my needs. You are dealing directly with the payment gateway instead of a third party like paypal, braintree, or zuora. Just remember, the more people between you and the bank, the less money you get to keep.

A wonderful feature about Groovy is that you can plug in your Java classes and they'll work out of the box. Grails also gives you the option of integrating with plain Spring beans (to put it lightly), so you can write important code in Java. There are, of course, payment gateways in Java.

My company uses Paypal and Beanstream as payment gateways, and it seems to work at the moment....

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!