[ANN] PayPal package for Iliad

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

[ANN] PayPal package for Iliad

Nicolas Petton
Hi guys,

I just pushed on github a small package to use PayPal transactions with
Iliad:

http://github.com/NicolasPetton/PayPal

The GNU Smalltalk project can be reached at:
http://smalltalk.gnu.org/project/paypal

It only supports ExpressCheckout transactions for now (even if adding
other kind of transactions should be easy) and probably needs some
refactorings/bug fixes ;)

How to use it:
--------------

1. Give your account infos:

account := PayPal.Account new
        user: '[hidden email]';
        password: 'password';
        signature: 'querty';
        yourself.

2. Create a transaction and show it from a widget:

transactionWidget := PayPal.ExpressCheckoutTransaction new
        account: account;
        currency: 'EUR';
        amount: 200;
        yourself.

aWidget show: transactionWidget onAnswer: [:paypalResponse |
        self doSomethingWith: paypalResponse]

To use the sandbox environment, send #beSandbox to the
transactionWidget.

Once the transaction is completed, the response will contain infos about
the status (#ack), the payer, its address, and possible transaction
errors.

Cheers,
Nico



signature.asc (205 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [Help-smalltalk] [ANN] PayPal package for Iliad

Giuseppe
Sounds cool.

Congrats.

El lun, 28-06-2010 a las 16:20 +0200, Nicolas Petton escribió:
Hi guys,

I just pushed on github a small package to use PayPal transactions with
Iliad:

http://github.com/NicolasPetton/PayPal

The GNU Smalltalk project can be reached at:
http://smalltalk.gnu.org/project/paypal

It only supports ExpressCheckout transactions for now (even if adding
other kind of transactions should be easy) and probably needs some
refactorings/bug fixes ;)

How to use it:
--------------

1. Give your account infos:

account := PayPal.Account new
	user: '[hidden email]';
	password: 'password';
	signature: 'querty';
	yourself.

2. Create a transaction and show it from a widget:

transactionWidget := PayPal.ExpressCheckoutTransaction new
	account: account;
	currency: 'EUR';
	amount: 200;
	yourself.

aWidget show: transactionWidget onAnswer: [:paypalResponse |
	self doSomethingWith: paypalResponse]

To use the sandbox environment, send #beSandbox to the
transactionWidget.

Once the transaction is completed, the response will contain infos about
the status (#ack), the payer, its address, and possible transaction
errors.

Cheers,
Nico


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk