API Reference#
Braintree Checkout#
The Account Payment Braintree Module defines a route to checkout a Payment or a Braintree Customer:
GET
/<database_name>/account_payment_braintree/checkout/<model>/<id>
: Returns an HTML page using the Checkout report.
model
the name of the model:account.payment
oraccount.payment.braintree.customer
.id
theid
of the record.
POST
/<database_name>/account_payment_braintree/checkout/<model>/<id>
: Retrieves the form withpayment_method_nonce
(and optionallydevice_data
) to set on the record.
Braintree Webhook#
The Account Payment Braintree Module defines a route to receive the Braintree’s webhooks:
POST
/<database_name>/account_payment_braintree/webhook/<account>
:
account
is the webhook identifier of the Account.