购物车API任何支付网关? (贝宝至少需要) [英] Shopping Cart API for any payment gateway? (PayPal at least required)

查看:323
本文介绍了购物车API任何支付网关? (贝宝至少需要)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图找到一个基于Java的API,它包装了至少处理通过PayPal信用卡交易或购买的细节,以及其他网关作为一个IPN时尚加(需即没有产品,只是一个发票金额)

I'm trying to find a java based API that wraps up the details of processing a credit card transaction or purchase via PayPal at a minimum, and other gateways as a plus in an IPN fashion (ie no products required, just an invoice amount)

作为一个有点简单化的,我想我应该可以做类似下面的伪code:

As a bit of a simplification, I think I should be able to do something like the following pseudocode:

shoppingApi.postTransaction("paypal", amount, currency, invoiceId, purchaseDescription)

和后来在预定任务或从IPN的URL通知:

and later on during a scheduled task or on notification from an IPN url:

completedPayments = shoppingApi.getUnprocessedCompletedPayments();
for (Payment payment: completedPayments)
{
  // my code to process a successful payment.
}

然后我会处理的购买。

and then I'd process the purchases.

我知道有吨的购物车在那里,做到这一点的,但是从我所看到的,他们都希望你把你的产品在他们的系统,它不为我工作。我的产品是在第三方的系统,我只是想处理付款。这就是全部。

I know there's tons of shopping carts out there that do this, but from what I've seen, they all want you to put your products in their system, which doesn't work for me. My products are in a 3rd party system, and I just want to process a payment. That's all.

和没有车,我知道的公开像我上面我建议一个简单的API。我不在乎输入我的用户使用的支付,我只是想知道,如果他们完成了它。我知道Shopify.com有一个REST API,做这样的事情,但它不是像IPN(就是了您的产品在它的系统)。

And no cart I know of exposes a simple API like the one I'm suggesting above. I don't care what payment type my users use, I just want to know if they completed it. I know that Shopify.com has a REST api that does something like this, but it's not IPN like (it wants your products in it's system).

在此先感谢您的任何建议!

Thanks in advance for any suggestions!

编辑:我当然知道,有会是我需要看看其他的状态,如待处理等,但是这会仅仅是另一种简单的API调用,像shoppingApi.getPendingPayments()。如果API做了上述2个呼叫,我会pretty开心; - )

I know of course that there'd be other statuses that I'd need to look at, like "pending", etc, but that'd simply be another simple API call, like shoppingApi.getPendingPayments(). If the API did the above 2 calls, I'd be pretty happy ;-)

编辑2:我倒是preFER开源的,但我对商业完全开放的,如果它是一个固定费用,可以造模在一定程度上,是相当成熟/可敬

EDIT 2: I'd prefer opensource, but am totally open to commercial if it's a flat fee, can be trialed to some extent, and is reasonably mature/respectable

编辑3 - 主要注意:我深信这样的库应该存在。它是否确实是另外一个问题。所以要清楚,我真的很喜欢看是的,使用这个库的答案,而不是NO,这不能做,因为我99.999%肯定这是可以做到;-)在此先感谢!

EDIT 3 - MAJOR NOTE: I feel confident that such a library should exist. Whether or not it does is another question. So to be clear, I'd really like to see "yes, use this library" answers, not "NO", this can't be done, as I'm %99.999 sure it can be done ;-) Thanks in advance!

推荐答案

有的本网站这可能是通过的JRuby 使用。结果
这可能会或可能不会来接近满足您的要求的地方。

There's this site which could be used via jruby.
This may or may not come somewhere near meeting your requirements.

这篇关于购物车API任何支付网关? (贝宝至少需要)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆