Skip to main content

Tryton module for Braintree payment

Project description

The account_payment_braintree module allows receipt of payments using Braintree. It uses the Drop-in UI in a checkout form to handle the payment method nonce for card and other supported payment methods.

Account

The Account stores the information about the Braintree account like the merchant ID, the public and secret keys etc.

The account’s webhook endpoint is the URL used by Braintree’s webhooks. If no webhook is setup, disputes will not update existing payments.

Customer

The Customer allows parties to be registered as Braintree customers. The checkout/add card button opens the Braintree Drop-in UI form.

A scheduled task runs every hour to create new customers on Braintree and another to delete them if they have become inactive.

Journal

The journal has a new field to store the Braintree account if the process method is set to “Braintree”.

Payment

The payment also has a checkout button which opens the Braintree Drop-in UI form. A payment can be processed using a nonce or a payment method from the customer. In case of an error, a new field displays the error message from Braintree. The settle field can be unchecked to only authorize on processing and settle the amount in a second step.

Two scheduled tasks run every 15 minutes to transact and settle each processing payment. Another scheduled task also runs every 15 minutes to pull updates for each processing payment until they have succeeded or failed.

The Braintree payments have a pull button which can be used to force an update with the braintree transaction.

Configuration

The account_payment_braintree module uses the section account_payment_braintree to retrieve some parameters:

  • payment_methods_cache: defines the duration in seconds that payment methods are kept in the cache. The default value is 15 * 60.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

File details

Details for the file trytond_account_payment_braintree-6.2.0.tar.gz.

File metadata

  • Download URL: trytond_account_payment_braintree-6.2.0.tar.gz
  • Upload date:
  • Size: 45.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for trytond_account_payment_braintree-6.2.0.tar.gz
Algorithm Hash digest
SHA256 3271fefa4472be6fd30f69a020402c882b33d7cae0d5ae63e936a1657d881469
MD5 772c4c8a5e242a6263eba3234c2f2d14
BLAKE2b-256 6a94c573b9eea917c3ad963b2488a8061e19569f8e3567ccded60b60a4728e99

See more details on using hashes here.

File details

Details for the file trytond_account_payment_braintree-6.2.0-py3-none-any.whl.

File metadata

  • Download URL: trytond_account_payment_braintree-6.2.0-py3-none-any.whl
  • Upload date:
  • Size: 81.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for trytond_account_payment_braintree-6.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 013b02c8df0dcf2b4b2dbfa3cc56dfbea9e4d81467cf400d95ed4c614b6084ab
MD5 aa3fea638df548f3754bf982814f09ea
BLAKE2b-256 00ed2844aec4eee222b130ce374b3a44f74569105529c0f8babb15860e32e358

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page