SilverStripe\Omnipay\Service\PaymentService::createPartialPayment
Create a partial payment that will be based on the current payment.
This new payment will inherit the Gateway, TransactionReference, SuccessUrl and FailureUrl of the initial payment.
Signature
protected function createPartialPayment(float
$amount,
string
$status,
[boolean
$write = true] )
Parameters
$amount
— float- the amount that the partial payment should have
$status
— string- the desired payment status
$write
— boolean- whether or not to directly write the new Payment to DB (optional)
Returns
- Payment
- the newly created payment (already written to the DB)