Method: WebPay::Customer#create
- Defined in:
- lib/webpay/customer.rb
#create(params = {}) ⇒ CustomerResponse
Create a customer object with given parameters.
6 7 8 9 10 |
# File 'lib/webpay/customer.rb', line 6 def create(params = {}) req = WebPay::CustomerRequestCreate.create(params) raw_response = @client._request(:post, 'customers', req) WebPay::CustomerResponse.new(raw_response) end |