Class: PayjpMock::Response::Error::CardError

Inherits:
Base
  • Object
show all
Defined in:
lib/payjp_mock/response/error/card_error.rb

Instance Attribute Summary

Attributes inherited from Base

#attributes

Instance Method Summary collapse

Methods inherited from Base

#body, #initialize

Methods inherited from Base

#body, #exception, #to_h

Constructor Details

This class inherits a constructor from PayjpMock::Response::Error::Base

Instance Method Details

#default_attributesObject



3
4
5
6
7
8
9
10
11
# File 'lib/payjp_mock/response/error/card_error.rb', line 3

def default_attributes
  {
    code:    'invalid_number',
    message: 'Invalid card number',
    param:   'card[number]',
    status:  status,
    type:    'card_error'
  }
end

#statusObject



13
14
15
# File 'lib/payjp_mock/response/error/card_error.rb', line 13

def status
  402
end