Method: Adyen::API#cancel_payment

Defined in:
lib/adyen/api.rb

#cancel_payment(psp_reference) ⇒ PaymentService::CancelResponse

Cancel an authorised payment.

Note that the response of this request will only indicate whether or not the request has been successfuly received. Check the notitification for the actual mutation status.

Parameters:

  • psp_reference (String)

    The PSP reference, from Adyen, of the previously authorised request.

Returns:



336
337
338
# File 'lib/adyen/api.rb', line 336

def cancel_payment(psp_reference)
  PaymentService.new(:psp_reference => psp_reference).cancel
end