Demo site for PayPal/bt.tn: https://ppbttn.herokuapp.com/
- Purchase a bttn and fill out this form to enable the beta PayPal integration. You will receive an email from bttn with your
config.phpwith these details.
- When you receive your button, register it.
- Login and select action for your bttn.
- Select new action.
- Select "pressed" for "EXECUTE ACTION IF BTTN IS".
- Select "PayPal bttn for commerce" as the action.
- Select the "save" button.
config.php with your Braintree API details
Braintree_Configuration::environment('sandbox'); Braintree_Configuration::merchantId(''); Braintree_Configuration::publicKey(''); Braintree_Configuration::privateKey('');
You will need to setup the following
bttn_status- One of ACTIVE (button has been fully registered and is ready for use), ONBOARDED (user has requested to be sent a button), UNREGISTERED (user once had a button, but is no longer associated to one).
bttn_code- The code of the button associated to the user.
cart_details- Records unique product identifiers for the items purchased in a comma-delimited format.
cart_detail_text- Records the type of transaction this is: website purchase, bttn reorder, bttn fixed price, bttn selection.
We specifically wrote our code to not need a database, but you will get some functionality and additional performance improvements if you use one.
$settings["USE_DATABASE"] = true;
config.php with your database connection details.
DB::$user = 'button'; DB::$password = 'button1'; DB::$dbName = 'button'; DB::$host = '127.0.0.1';
config.php with your email settings.
$settings["MAIL_SMTP_HOST"] = "some.smtp.server"; $settings["MAIL_SMTP_PORT"] = 587; $settings["MAIL_FROM_NAME"] = "William's Widgets"; $settings["MAIL_FROM_EMAIL"] = "firstname.lastname@example.org"; $settings["MAIL_BCC"] = "email@example.com";