Request player payment
POST {{baseUrl}}/{{version}}/stripe/requestpayment/{{user_id}}
This endpoint allows you to request payment from a given player.
After the PaymentIntent is created, attach a payment method and confirm to continue the payment. You can read more about the different payment flows available via the Payment Intents API here.
When confirm=true
is used during creation, it is equivalent to creating and confirming the PaymentIntent in the same call. You may use any parameters available in the confirm API when confirm=true
is supplied.
https://stripe.com/docs/api/payment_intents
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | A valid JWT token |
RESPONSES
status: OK
{"error":false,"code":200,"message":"Authentication with stripe completed","client_token":"pi_3KTUbxHo0bXgDj3i08NQHXeW_secret_00XVMjXrfyNUzjTHWu8FgOBwP","amount":4788}