Anyone using Seaside & Paypal?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Anyone using Seaside & Paypal?

Rick Flower
Just curious as I get further in writing my web-app in Seaside, whether
or not anyone else here has implemented a paypal package that works in
conjunction w/ Seaside & VW?  I could take a stab at implementing one,
but thought I'd ask first.. Thanks for any info you've got..

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Anyone using Seaside & Paypal?

Lukas Renggli
> Just curious as I get further in writing my web-app in Seaside, whether
> or not anyone else here has implemented a paypal package that works in
> conjunction w/ Seaside & VW?  I could take a stab at implementing one,
> but thought I'd ask first.. Thanks for any info you've got..

The ESUG registration application is using PayPal. I just generate a
redirect with some dynamic parts. You can plug this into an
anchor/button callback:

self session redirectTo: (WAUrl new
        scheme: #https;
        hostname: 'www.paypal.com';
        port: 443;
        addToPath: 'cgi-bin';
        addToPath: 'webscr';
        addParameter: 'cmd' value: '_xclick';
        addParameter: 'business' value: '[hidden email]';
        addParameter: 'item_name' value: 'Registration to ESUG 2005 Event';
        addParameter: 'item_number' value: 'ESUG2005Registration';
        addParameter: 'amount' value: self attendee totalFees asString;
        addParameter: 'no_shipping' value: '1';
        addParameter: 'no_note' value: '1';
        addParameter: 'currency_code' value: 'EUR';
        addParameter: 'charset' value: 'UTF-8';
        asString).

Hope this helps?

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Anyone using Seaside & Paypal?

Avi  Bryant
In reply to this post by Rick Flower

On Oct 23, 2006, at 10:17 PM, Rick Flower wrote:

> Just curious as I get further in writing my web-app in Seaside,  
> whether or not anyone else here has implemented a paypal package  
> that works in conjunction w/ Seaside & VW?  I could take a stab at  
> implementing one, but thought I'd ask first.. Thanks for any info  
> you've got..

FWIW, here's something I dug out of my package-cache.  I honestly  
don't remember how useful this is (not very, I suspect), but maybe  
it'll give someone some ideas.


_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

PayPal-avi.9.mcz (8K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Anyone using Seaside & Paypal?

Rick Flower
In reply to this post by Lukas Renggli
Lukas Renggli wrote:

>> Just curious as I get further in writing my web-app in Seaside, whether
>> or not anyone else here has implemented a paypal package that works in
>> conjunction w/ Seaside & VW?  I could take a stab at implementing one,
>> but thought I'd ask first.. Thanks for any info you've got..
>
> The ESUG registration application is using PayPal. I just generate a
> redirect with some dynamic parts. You can plug this into an
> anchor/button callback:
>
> self session redirectTo: (WAUrl new
>     scheme: #https;
>     hostname: 'www.paypal.com';
>     port: 443;
>     addToPath: 'cgi-bin';
>     addToPath: 'webscr';
>     addParameter: 'cmd' value: '_xclick';
>     addParameter: 'business' value: '[hidden email]';
>     addParameter: 'item_name' value: 'Registration to ESUG 2005 Event';
>     addParameter: 'item_number' value: 'ESUG2005Registration';
>     addParameter: 'amount' value: self attendee totalFees asString;
>     addParameter: 'no_shipping' value: '1';
>     addParameter: 'no_note' value: '1';
>     addParameter: 'currency_code' value: 'EUR';
>     addParameter: 'charset' value: 'UTF-8';
>     asString).

Thanks Lukas --

Do you then get some sort of email back to the registered address (e.g.
[hidden email] in the above code) that indicates a payment was made?
If that's the case, I guess an order-id could be placed somewhere in the
info above that could be used to figure out the order when multiple
orders come in for different people at about the same time.

-- Rick
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Anyone using Seaside & Paypal?

Rick Flower
In reply to this post by Avi Bryant
Avi Bryant wrote:

>
> On Oct 23, 2006, at 10:17 PM, Rick Flower wrote:
>
>> Just curious as I get further in writing my web-app in Seaside,
>> whether or not anyone else here has implemented a paypal package that
>> works in conjunction w/ Seaside & VW?  I could take a stab at
>> implementing one, but thought I'd ask first.. Thanks for any info
>> you've got..
>
> FWIW, here's something I dug out of my package-cache.  I honestly don't
> remember how useful this is (not very, I suspect), but maybe it'll give
> someone some ideas.

Thanks Avi.. I'll check it out too..
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Anyone using Seaside & Paypal?

Philippe Marschall
In reply to this post by Avi Bryant
2006/10/24, Avi Bryant <[hidden email]>:

>
> On Oct 23, 2006, at 10:17 PM, Rick Flower wrote:
>
> > Just curious as I get further in writing my web-app in Seaside,
> > whether or not anyone else here has implemented a paypal package
> > that works in conjunction w/ Seaside & VW?  I could take a stab at
> > implementing one, but thought I'd ask first.. Thanks for any info
> > you've got..
>
> FWIW, here's something I dug out of my package-cache.  I honestly
> don't remember how useful this is (not very, I suspect), but maybe
> it'll give someone some ideas.

Is it ok if I put that on SqueakSource?

Cheers
Philippe
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Anyone using Seaside & Paypal?

Avi  Bryant

On Oct 24, 2006, at 8:38 AM, Philippe Marschall wrote:

> 2006/10/24, Avi Bryant <[hidden email]>:
>>
>> On Oct 23, 2006, at 10:17 PM, Rick Flower wrote:
>>
>> > Just curious as I get further in writing my web-app in Seaside,
>> > whether or not anyone else here has implemented a paypal package
>> > that works in conjunction w/ Seaside & VW?  I could take a stab at
>> > implementing one, but thought I'd ask first.. Thanks for any info
>> > you've got..
>>
>> FWIW, here's something I dug out of my package-cache.  I honestly
>> don't remember how useful this is (not very, I suspect), but maybe
>> it'll give someone some ideas.
>
> Is it ok if I put that on SqueakSource?

Sure.

Avi
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Anyone using Seaside & Paypal?

Nevin Pratt
In reply to this post by Lukas Renggli

>
> The ESUG registration application is using PayPal. I just generate a
> redirect with some dynamic parts. You can plug this into an
> anchor/button callback:
>
> self session redirectTo: (WAUrl new
>     scheme: #https;
>     hostname: 'www.paypal.com';
>     port: 443;
>     addToPath: 'cgi-bin';
>     addToPath: 'webscr';
>     addParameter: 'cmd' value: '_xclick';
>     addParameter: 'business' value: '[hidden email]';
>     addParameter: 'item_name' value: 'Registration to ESUG 2005 Event';
>     addParameter: 'item_number' value: 'ESUG2005Registration';
>     addParameter: 'amount' value: self attendee totalFees asString;
>     addParameter: 'no_shipping' value: '1';
>     addParameter: 'no_note' value: '1';
>     addParameter: 'currency_code' value: 'EUR';
>     addParameter: 'charset' value: 'UTF-8';
>     asString).
>
> Hope this helps?
>
> Lukas
>

This is interesting.  I wasn't aware that there was any https support in
Squeak.

I also connect to PayPal, but I use Stunnel for SSL.  That way the POST
is just a normal http POST.

What exactly is the current level of https support in Squeak?  And, how
realiable?

Opinions would be great.

Nevin

_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: Re: Anyone using Seaside & Paypal?

Lukas Renggli
> > self session redirectTo: (WAUrl new
> >     scheme: #https;
> >     hostname: 'www.paypal.com';
> >     port: 443;
> >     addToPath: 'cgi-bin';
> >     addToPath: 'webscr';
> >     addParameter: 'cmd' value: '_xclick';
> >     addParameter: 'business' value: '[hidden email]';
> >     addParameter: 'item_name' value: 'Registration to ESUG 2005 Event';
> >     addParameter: 'item_number' value: 'ESUG2005Registration';
> >     addParameter: 'amount' value: self attendee totalFees asString;
> >     addParameter: 'no_shipping' value: '1';
> >     addParameter: 'no_note' value: '1';
> >     addParameter: 'currency_code' value: 'EUR';
> >     addParameter: 'charset' value: 'UTF-8';
> >     asString).
>
> This is interesting.  I wasn't aware that there was any https support in
> Squeak.

The above code simply redirects to a https website, it does not use
anything https related to Squeak.

> also connect to PayPal, but I use Stunnel for SSL. That way the POST
> is just a normal http POST.

I use an Apache for HTTPS.

> What exactly is the current level of https support in Squeak?  And, how
> realiable?

Some time ago the cryptography team announced a Smalltalk
implementation for SSL in Squeak. I don't know if it is already
useable for HTTPS and if it performs fast enough, but it is definitely
very cool ...

There is also a Curl plugin, that supports HTTPS.

Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
Seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside