Charge payment account on file
process_paymentCharge a client's stored payment account and apply the funds to selected invoices, with an optional receipt email.
Instructions
Charge a client's stored card or bank account through the payment gateway and apply the result to invoices. Wraps Payments.processPayment with account_id only; raw card data is never accepted. Sends the client a receipt unless disabled. Moves real money. DISABLED: set BLESTA_ALLOW_PAYMENTS=1 to enable.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Kind of stored account | |
| amount | Yes | ||
| currency | Yes | ||
| invoices | No | Map of invoice_id -> amount to apply; total must not exceed amount | |
| staff_id | No | ||
| client_id | Yes | ||
| account_id | Yes | Stored payment account id from get_payment_accounts | |
| email_receipt | No |