$post_defaults
$post_defaults : array
Post payment defaults Can be set and updated using setPostDefault($key, $value)
Class for handling payments resource Api docs: http://docs.eventsforce.apiary.io/#reference/payments
$client : \EventsForce\Client
Stores an instance of the client for resources to Access
__construct(\EventsForce\Client $client)
BaseResource constructor.
\EventsForce\Client | $client |
get(boolean $payment_id = false) : \Psr\Http\Message\StreamInterface
Method to get a single payment under an invoice Api docs: http://docs.eventsforce.apiary.io/#reference/payments/invoicesinvoicenumberpaymentspaymentidjson/get
boolean | $payment_id |
setPostDefault(boolean $key = false, null $value = null) : $this
Method to set a post default This allows you to run multiple post payments where the post data isn't defined each time e.g ->setPostDefault('currencyCode', 'GBP') ->setPostDefault('comment', 'Made by My Application') ->setInvoice(1) ->post(['amount' => 2738.22]);
boolean | $key | |
null | $value |
post(array $data = array()) : \Psr\Http\Message\StreamInterface
Method to post a payment against an invoice Api docs: http://docs.eventsforce.apiary.io/#reference/payments/invoicesinvoicenumberpaymentsjson/post THIS NEEDS TESTING WITH A FULL ACCESS API
array | $data |