资 源 简 介
An implementation of PayPal Express Checkout API written in Python; with emphasis on ease-of-use and simplicity.
Design and implementation based on PayPal NVP Java Library.
# import the required modulesimport gk.paypal.coreimport gk.paypal.requestsimport gk.paypal.fields
# set user - these are your credentials from paypaluser = gk.paypal.core.BaseProfile( username=self.settings["paypal_login"], password=self.settings["paypal_password"] ) user.set_signature( self.settings["paypal_signature"] )
```
# create items (items from a shopping basket)
item1 = gk.paypal.fields.PaymentItem()
item1.set_name( "Tazza da caffe" )
item1.set_description("Splendida tazza da caffe bianca")
item1.set_amount( "8.00" );
item2 = gk.paypal.fields.PaymentItem()
item2.set_name( "Biscottiera"