class Adyen::REST::AuthorisePayment::Response

The Response class implements some extensions for the authorise payment call. @see Adyen::REST::Response

Constants

AUTHORISED
REDIRECT_SHOPPER
REFUSED

Public Instance Methods

authorised?() click to toggle source

Checks whether the authorisation was successful. @return [Boolean] true iff the authorisation was successful, and the

authorised amount can be captured.
   # File lib/adyen/rest/authorise_payment.rb
46 def authorised?
47   result_code == AUTHORISED
48 end
Also aliased as: authorized?
authorized?()
Alias for: authorised?
redirect_shopper?() click to toggle source

Checks whether the result of the authorization call was RedirectShopper, which means that the customer has to be redirected away from your site to complete the 3Dsecure transaction. @return [Boolean] true iff the shopper has to be redirected,

<tt>false</tt> in any other case.
   # File lib/adyen/rest/authorise_payment.rb
63 def redirect_shopper?
64   result_code == REDIRECT_SHOPPER
65 end
refused?() click to toggle source

Check whether the payment was refused. @return [Boolean] true iff the authorisation was not successful.

   # File lib/adyen/rest/authorise_payment.rb
54 def refused?
55   result_code == REFUSED
56 end
result_code() click to toggle source

Returns the result code from the transaction. @return [String] The result code. @see authorised? @see refused? @see redirect_shopper?

   # File lib/adyen/rest/authorise_payment.rb
72 def result_code
73   self[:result_code]
74 end