Hi guys,
I just pushed on github a small package to use PayPal transactions with
Iliad:
http://github.com/NicolasPetton/PayPalThe GNU Smalltalk project can be reached at:
http://smalltalk.gnu.org/project/paypalIt 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