PaymentMethodConfigOptions
PaymentMethodConfigOptions
Defines the object which is used to construct the PaymentMethodHandler.
Signature
interface PaymentMethodConfigOptions<T extends ConfigArgs> extends ConfigurableOperationDefOptions<T> {
createPayment: CreatePaymentFn<T>;
settlePayment: SettlePaymentFn<T>;
createRefund?: CreateRefundFn<T>;
onStateTransitionStart?: OnTransitionStartFn<PaymentState, PaymentTransitionData>;
}
Extends
Members
createPayment
CreatePaymentFn<T>
settlePayment
SettlePaymentFn<T>
createPayment()
method returns with a state of 'Settled'
) this method
need only return { success: true }
.
createRefund
CreateRefundFn<T>
onStateTransitionStart
boolean
) is used to determine whether the transition is permitted.