This is a simple wrapper for the PayPal Web Payments Pro NVP API. Requires [dictionary].
Parameters
none
Sample Usage
// create a new PayPal object, passing in your API credentials
// include the -test keyword to hit the sandbox
var('myPayPalObject') = paypal_nvpapi(
-user='paypal_api_username',
-pwd='paypal_api_password',
-signature='paypal_api_signature',
-test=true
);
// call whichever method you need, and pass in the required
// arguments, based on the API documentation
// for best results, match spelling and capitalization exactly
var('response') = $myPayPalObject->DoDirectPayment(
-paymentaction='Authorization',
-ipaddress=client_ip,
-amt=0.00,
-acct='XXXX-XXXX-XXXX-XXXX',
-expdate='MMYYYY',
-creditcardtype='AMEX',
-ccv2=123,
-email='user@domain.tld',
-firstname='Joe',
-lastname='User',
-street='1234 This Way',
-city='Omaha',
-state='NE',
-zip='90210',
-countrycode='US'
);
// the result will be a [dictionary] (http://tagswap.net/dictionary)
// which you can treat like a map, or just access the parameters directly:
var('transactionID') = $response->TransactionID;
Source Code
Click the "Download" button below to retrieve a copy of this tag,
including the complete documentation and sample usage shown
on this page. Place the downloaded ".inc" file in your
LassoStartup folder, restart Lasso, and you can begin using this
tag immediately.