Payments - Create
POST {{baseUrl}}/payments
To process a payment you will have to create a payment, attach a payment method and confirm. Depending on the user journey you wish to achieve, you may opt to all the steps in a single request or in a sequence of API request using following APIs: (i) Payments - Update, (ii) Payments - Confirm, and (iii) Payments - Capture
Request Body
{"amount"=>180000, "currency"=>"USD", "confirm"=>false, "capture_method"=>"automatic", "connector"=>"{{connector_name}}", "capture_on"=>"2022-09-10T10:11:12Z", "amount_to_capture"=>6540, "customer_id"=>"StripeCustomer", "email"=>"guest@example.com", "name"=>"John Doe", "phone"=>"999999999", "phone_country_code"=>"+65", "description"=>"Its my first payment request", "authentication_type"=>"no_three_ds", "return_url"=>"https://google.com", "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 |