AS3-PayPal-API is a library that allows the use of popular payment service Paypal. The library provides the developer with methods to make requests to Paypal gateway, which can be used to sell an item, for instance.

It is possible to configure the class to work on Paypal’s sandbox, which allows the use of fake accounts/data for testing.

Sample

var paypalRequest:PayPalRequest = new PayPalRequest(
  PayPalRequestType.DONATION,//donation
  "your@mail.com",
  "FR",//OR EN etc...
  "Business Name",
  "1",
  selectedPrice,//ammount
  "http://returnuri.com",
  "http://cancelreturnrui.com");
PayPal.makeRequest( paypalRequest , true );
Monetization . URL.