-
PayPal
Hi
We're start to look at adding PayPal as a payment option. Has anyone added PayPal to their Web Application? And what implementation have you used?
We have been looking at the Rest API interface, which allows you to drop a PayPal payment button on your page and do the payment through their page, which is fine. However it requires a synchronous JS call from the client to the our server to get a PayPal token via a .net dll which we've wrapped and return it.
This seems overly complicated, and we're hoping someone has a simpler suggestion.
-
Re: PayPal
Hi Tom,
We’re actually working on a Payment Module for the DF WebApp Framework. The module itself is a framework style library that allows you to attach multiple Payment Providers once they’re implemented in DF. The module will take care of all communication back and forth between the client, server and provider. One of the providers that is high on our priority list to implement once the module is done is PayPal.
We’ll be giving a small showcase of this at the EDUC (Henri’s presentation on Friday), but feel free to hop by before or after that for more info!
-
Re: PayPal
Hi Tom
We use paypal from our website, but it is the older ASP style of WebApp. It was pretty easy to do. I've not done it from the newer WebApp style. Let me know if you need more info.
Mike
-
Re: PayPal
We created a simple javascript control to use paypal express checkout
code looks like this
[CODE]
Object oPPECButton is a cszWebPayPalEC
Set piColumnSpan to 0
Set psEnvironment to 'sandbox' // sandbox / production
Set psSandBoxClientID to "...."
Set psProductionClientID to "..."
Procedure DoInitializePayment
// set up payment info as json object here
End_Procedure
Set pbServerOnCancel to True
Procedure OnCancel
Send ShowInfoBox "Cancelled"
End_Procedure
Procedure OnAuthorize String paymentToken String orderID String payerID String paymentID String intent String returnUrl
Send ShowInfoBox "Authorized"
End_Procedure
End_Object
End_Object
[/CODE]
-
Re: PayPal
What does the code look like in cszWebPayPalEC and the JavaScript class ?
-
Re: PayPal
I did the PayPal on the DISD website for registration. I used the simple html form code with the button. I wanted to use the API interface but didn't have time to figure it out. The html stuff is easy but problematic in that you can't really get the result back from them using this method. Go for the API version.
-
Re: PayPal
[QUOTE=Focus;333654]What does the code look like in cszWebPayPalEC and the JavaScript class ?[/QUOTE]
the code in the DF class is very minimal. All the code is on the JS side and it is essentially a DF client side javascript class with the code from the Paypal API.
We also have a library for the desktop and web that uses the older express checkout api with the tokens
-
Re: PayPal
Hi Mike
So is that code example using Braintree?
[QUOTE][COLOR=#333333]We also have a library for the desktop and web that uses the older express checkout api with the tokens[/COLOR][/QUOTE]
This is the one we're trying to get going. We were looking at the .dll to get the token, but I am going to look at Mike Peat's OAuth stuff. I would be interested to know how you get the token off paypal please, thanks.
Cheers
Tom
-
Re: PayPal
Hi,
Has this been done yet? What release of dataflex will it be coming out on?
Regards,
Gordon
-
Re: PayPal
Thomas - we are using PayPal through our CC service provider (Braintree).
Mark