freshbooks-php-sdk

InvoicePaymentOptions extends DataTransferObject implements DataModel

In FreshBooks, invoices can be paid online via a variety of payment gateways setup on the sender’s account. In order for this to be available on an invoice, the online payments must be set up through a separate call after the invoice has been created.

While default payment options exist, they are not automatically applied to new invoices and must be retrieved and added manually.

Tags
link
https://www.freshbooks.com/api/online-payments

Table of Contents

Interfaces

DataModel

Constants

RESPONSE_FIELD  = 'payment_options'

Properties

$allowPartialPayments  : bool
$entityId  : string
$entityType  : string
$gatewayName  : string
$hasAchTransfer  : bool
$hasAcssDebit  : bool|null
$hasBacsDebit  : bool|null
$hasCreditCard  : bool
$hasPaypalSmartCheckout  : bool|null
$hasSepaDebit  : bool|null

Methods

getContent()  : array<string|int, mixed>
Get the data as an array to POST or PUT to FreshBooks, removing any read-only fields.

Constants

Properties

$allowPartialPayments

public bool $allowPartialPayments

If the client can use the gateway to pay part of the invoice or only the full amount.

$entityId

public string $entityId

invoice_id of the connected invoice.

Note: The API returns this as entity_id.

Methods

getContent()

Get the data as an array to POST or PUT to FreshBooks, removing any read-only fields.

public getContent() : array<string|int, mixed>
Return values
array<string|int, mixed>
Loading…
On this page

Search results