help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Nicolas Petton
Subject: [Help-smalltalk] [ANN] PayPal package for Iliad
Date: Mon, 28 Jun 2010 16:18:30 +0200

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: 'address@hidden';
        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

Attachment: signature.asc
Description: Ceci est une partie de message numériquement signée


reply via email to

[Prev in Thread] Current Thread [Next in Thread]