PaymentMethods - Create
POST {{baseUrl}}/payment_methods
To create a payment method against a customer object. In case of cards, this API could be used only by PCI compliant merchants
Request Body
{"payment_method"=>"card", "payment_method_type"=>"credit", "payment_method_issuer"=>"Visa", "card"=>{"card_number"=>"4242424242424242", "card_exp_month"=>"10", "card_exp_year"=>"25", "card_holder_name"=>"John Doe", "nick_name"=>"john"}, "customer_id"=>"{{customer_id}}", "metadata"=>{"city"=>"NY", "unit"=>"245"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |