× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Thanks Brad but I am not wanting to process payments - that is totally
handled by a separate application that I have nothing to do with.

What I want to do is retrieve payment history transactions after the fact
- eg once or twice a day access there site using one of the API options
provided and retrieve the transactions for a specific date time range.

So I am hoping I can do that with RPG.

My problem is lack of knowledge as to the best way to achieve this with
the API's provided by Braintree and the tools available to me on the IBM
i.

I was hoping someone on this group may be able to suggest the best option
then I will pursue that.

Do appreciate your response

Merr Christmas


Don Brown




From: Bradley Stone <bvstone@xxxxxxxxx>
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Date: 24/12/2016 01:08 AM
Subject: Re: Has anyone worked with Braintree using HTTPAPI
Sent by: "MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx>



If this is similar to other payment gateways you won't need a client like
HTTPAPI or GETURI. The only reason I would see using this in this
scenario is if you had to grab some sort of extra token or key from them
for validation. But that doesn't appear to be the case.

How other payment portals that I have worked with do this:

1. You generate a unique ID (or token) for the transaction on your
webpage
when the use clicks "pay". In this case they're calling it a token.

2. You send the user to the 3rd party payment portal (which looks to be
an
iFrame in this case) along with the ID/token. At this time, some portals
will make a quick call back to your server with your ID/token to make sure
you initiated the request.

3. The user enters their CC info, etc on the 3rd party portal.

4. When done the 3rd party portal passes control back to your web app.
You check that the token is still the same (and possibly other things such
as a unique app id for your company) as well as the payment status.

At least it LOOKs similar to that. Just hope that your web app has up to
date SSL certificates. I'm sure that's a prerequisite here as it has been
on others.

I think they're making it look a little to complicated.

Brad
www.bvstools.com

On Thu, Dec 22, 2016 at 6:09 PM, Don Brown <DBrown@xxxxxxxxxx> wrote:

Firstly has anyone interacted with Braintree using RPG ? (Braintree are
a
division of PayPal providing a payment gateway)

I have used HTTPAPI to consume many different web services and was
hoping
to use it again but this time the gateway (Braintree) does not provide a
web service as such but they provide API's

Ok before I go on please let me state I am not knowledgeable on
accessing
their site to retrieve information using this type of interface or my
terminology may be wrong and therefore confusing.

Braintree offer a set of client libraries which a list of can be viewed
here:

https://developers.braintreepayments.com/?partner_source=AU_DT_SEA_GGL_
TXT_RES_STR_CPC_GW_YBR_m*e_c*51823850147_k*braintree_d*
[AU]-Braintree-Branded_g*Branded_f*c_p*1t1&gclid=
Cj0KEQiAyuPCBRCimuayhb3qqvwBEiQAgz62kejZSMAXyeXQ5pNZ68DvF_k_9niocp8U_
fYHQ15JhfIaAp3v8P8HAQ&gclsrc=aw.ds&dclid=CLnKsd_OhNECFQFylgodP9YI3g


They also offer a java option which is where I am heading at the moment
as
I have also used java calls from RPG very successfully.

I am not after a third party solution.
I do not want a python or PHP or other flavour solution - well not at
the
moment :-)

Can anyone point me in the right direction to at least understand what
is
needed to be able to use their API's from RPG please.

Thanks for any assistance

Don Brown


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.