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)
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)
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.
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!
EDIT: 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 ;-)
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
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!
Payflow Gateway is PayPal's secure and open payment gateway. Using the Payflow Gateway APIs, merchants can process debit and credit card payments, PayPal, PayPal Credit ®, authorizations, captures, and credit voids. PayPal Payments Pro internally utilizes Payflow Gateway and its API, providing the same features.
Shopping carts or reservation systems need to be integrated to a payment gateway in order for client to use said shopping cart and PG. Each gateway has its own method of connection (usually via API) so each shopping cart needs to be programmed and tested with that gateway.
Stripe payment API for developers gives access to methods for accepting payments, managing subscriptions, tracking user accounts, and sending invoices. The user interface is the best in the industry. A lot of good companies are using its services such as Lyft, Postmates, Doordash, TaskRabbit, Deliveroo, Slack, Kickstarter, and Pinterest.
1 Stripe. Stripe was launched in 2010 and it is one of the most industry-standard payment gateways loved by a lot of developers. 2 PayPal. Paypal is indeed one of the most popular payment gateways and it is well known in all countries. ... 3 Razorpay. ... 4 PayU. ... 5 Instamojo. ... 6 Paytm. ... 7 CCAvenue. ...
There's this site which could be used via jruby
.
This may or may not come somewhere near meeting your requirements.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With