paypal-integrations-intacct
Version:
Integration between paypal and intacct using hapi.
123 lines (84 loc) • 5.36 kB
Markdown
[](https://travis-ci.org/trainerbill/paypal-integrations-intacct)
[](https://coveralls.io/github/trainerbill/paypal-integrations-intacct?branch=master)
[](https://badge.fury.io/js/paypal-integrations-intacct)
[](https://david-dm.org/trainerbill/paypal-integrations-intacct)
[](https://david-dm.org/trainerbill/paypal-integrations-intacct#info=devDependencies)
[](http://opensource.org/licenses/MIT)
Hapi module to integrate between Intacct and PayPal. This package is meant to be installed with the [generator application](https://github.com/trainerbill/generator-hapi-middleman) but can be installed manually as well.
Environment variables control the configuration of this plugin.
Required environment variables for **ALL** functionality.
Intacct Sender ID credential. Given by Intacct<br/>
Intacct Sender Password credential. Given by Intacct<br/>
Intacct User ID credential. From Intacct users<br/>
Intacct User Password credential. From Intacct users<br/>
Intacct Company ID. From Intacct<br/>
PayPal REST API Client ID. From developer.paypal.com<br/>
PayPal REST API Client Secret. From Intacct users<br/>
PayPal environment<br/>
**Values: "sandbox" or "production"**<br/>
URL to receive PayPal Webhooks. Must be https. The def<br/>
**Value: Add /paypal/webhooks/listen to your hostname. Ex: https://example.com/paypal/webhooks/listen**<br/>
Required environment variables for invoicing functionality
PayPal Merchant Email. This is required to be the email address associated with your REST client id.<br/>
The default Intacct account id to submit payments against. If a currency account is not setup it will automatically submit payments to this account.<br/>
Sets the date to start picking up invoices. Set this to your go live date. valid dates are MM/DD/YYYY<br/>
Optional environment variables for invoicing functionality<br/>
Biller first name that shows up on invoice<br/>
Biller last name that shows up on invoice<br/>
Biller business name that shows up on invoice<br/>
Biller phone country code that shows up on invoice<br/>
**Default: 1**<br/>
Biller phone number that shows up on invoice<br/>
Biller street address that shows up on invoice<br/>
Biller additional street address that shows up on invoice<br/>
Biller city address that shows up on invoice<br/>
Biller additional state address that shows up on invoice<br/>
**2 character state**<br/>
Biller zip code that shows up on invoice<br/>
Override the default intacct query for invoices to create.<br/>
**Default: "RAWSTATE = 'A' AND (PAYPALINVOICESTATUS IS NULL OR PAYPALINVOICESTATUS NOT IN ('CANCELLED')) AND TOTALDUE NOT IN (0)"**<br/>
Controls automatic creation of invoices. If false it will require that the PAYPALINVOICING checkbox be checked on the Intacct Custom field<br/>
**Default: true**<br/>
Controls the cron job for creating invoices. Anything that can be parsed by [later package](https://bunkat.github.io/later/getting-started.html#example)<br/>
**Default: "every 1 hour"**<br/>
Override the default intacct query for invoices to refund.<br/>
**Default: "RAWSTATE = 'V' AND PAYPALINVOICESTATUS NOT IN ('REFUNDED', 'CANCELLED')"**<br/>
Controls automatic refunding of invoices. If false it will require that the PAYPALINVOICING checkbox be checked on the Intacct Custom field<br/>
**Default: true**<br/>
Controls the cron job for refunding invoices. Anything that can be parsed by [later package](https://bunkat.github.io/later/getting-started.html#example)<br/>
**Default: "every 1 hour"**<br/>
he intacct account to submit payments of USD to. If set then PayPal invoices of type USD will go to this intacct account.<br/>