omnipay icon indicating copy to clipboard operation
omnipay copied to clipboard

Ability to cancel payments/invoces

Open 4n70w4 opened this issue 6 years ago • 1 comments
trafficstars

Hi. Some payment gateways cannot cancel old payments / invoces themselves, but have the ability to manually cancel payments.

Need to provide methods in the omnipay interface so that the application can send requests to the gateway to cancel the payment.

It is necessary that the buyer could not pay the expired / overdue / not up-to-date invoice.

4n70w4 avatar Feb 04 '19 15:02 4n70w4

Oh, this is alredy exists and named as void.

Then need to add to the description of the method that it is suitable for payment/invoice cancellation, to improve the user-friendly of the library.

 * @method \Omnipay\Common\Message\RequestInterface void(array $options = array())              (Optional method)
 *         Generally can only be called up to 24 hours after submitting a transaction

4n70w4 avatar Feb 04 '19 16:02 4n70w4