Payments - Update
POST {{baseUrl}}/payments/:id
To update the properties of a PaymentIntent object. This may include attaching a payment method, or attaching customer object or metadata fields after the Payment is created
Request Body
{"amount"=>20000, "currency"=>"SGD", "confirm"=>false, "capture_method"=>"automatic", "capture_on"=>"2022-09-10T10:11:12Z", "amount_to_capture"=>6540, "email"=>"joseph@example.com", "name"=>"joseph Doe", "phone"=>"8888888888", "phone_country_code"=>"+65", "description"=>"Its my first payment request", "authentication_type"=>"no_three_ds", "payment_method"=>"card", "return_url"=>"https://google.com", "payment_method_data"=>{"card"=>{"card_number"=>"4242424242424242", "card_exp_month"=>"10", "card_exp_year"=>"25", "card_holder_name"=>"joseph Doe", "card_cvc"=>"123"}}, "billing"=>{"address"=>{"line1"=>"1467", "line2"=>"Harrison Street", "line3"=>"Harrison Street", "city"=>"San Fransico", "state"=>"California", "zip"=>"94122", "country"=>"US"}}, "shipping"=>{"address"=>{"line1"=>"1467", "line2"=>"Harrison Street", "line3"=>"Harrison Street", "city"=>"San Fransico", "state"=>"California", "zip"=>"94122", "country"=>"US"}}, "statement_descriptor_name"=>"joseph", "statement_descriptor_suffix"=>"JS", "metadata"=>{"udf1"=>"value1", "new_customer"=>"true", "login_date"=>"2019-09-10T10:11:12Z"}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |