#akshaymulgavkarsji
1 messages · Page 1 of 1 (latest)
Can you share a request id where this is happening?
Yeah i mean you're trying to create a charge and not passing anything in the request body: https://dashboard.stripe.com/test/logs/req_5PIXUGRgxeI5W5
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
How can you create a charge without passing any params?
Can you share a request id where this succeeded then?
POST /v1/tokens
Status
200 OK
ID
req_bYKTmahruyFPzL
Time
18/07/2023, 05:03:07
IP address
114.143.21.52
API Version
2020-08-27
Source
Stripe/v1 NodeBindings/8.222.0
Idempotency
Key – 0b181048-64fb-4c2a-804d-2c03f0637c53
Response body
{
"id": "tok_1NV9oFG9dVKEzZtbbSgEd4di",
"object": "token",
"card": {
"id": "card_1NV9oFG9dVKEzZtb22S6zbZA",
"object": "card",
"address_city": null,
"address_country": null,
"address_line1": null,
"address_line1_check": null,
"address_line2": null,
"address_state": null,
"address_zip": null,
"address_zip_check": null,
"brand": "Visa",
"country": "US",
"cvc_check": "unchecked",
"dynamic_last4": null,
"exp_month": 7,
"exp_year": 2024,
"fingerprint": "8onmhfcuNP31OocS",
"funding": "credit",
"last4": "4242",
"metadata": {
},
"name": null,
"tokenization_method": null,
"wallet": null
},
"client_ip": "114.143.21.52",
"created": 1689670987,
"livemode": false,
"type": "card",
"used": false
}
Request POST body
{
"card": {
"number": "*********4242",
"exp_month": "07",
"cvc": "",
"exp_year": "24"
}
}
POST /v1/customers
Status
200 OK
ID
req_fwku2dz9F3j3Jo
Time
18/07/2023, 05:03:08
IP address
114.143.21.52
API Version
2020-08-27
Source
Stripe/v1 NodeBindings/8.222.0
Idempotency
Key – 2f6f685b-77e8-4b3e-a586-692672c8e3c1
Response body
{
"id": "cus_OHjGQZhmcG57JX",
"object": "customer",
"address": null,
"balance": 0,
"created": 1689670988,
"currency": null,
"default_currency": null,
"default_source": "card_1NV9oFG9dVKEzZtb22S6zbZA",
"delinquent": false,
"description": null,
"discount": null,
"email": null,
"invoice_prefix": "4F4087BF",
"invoice_settings": {
"custom_fields": null,
"default_payment_method": null,
"footer": null,
"rendering_options": null
},
"livemode": false,
"metadata": {
},
"name": "AkshayJuly1801",
"next_invoice_sequence": 1,
"phone": null,
"preferred_locales": [
],
"shipping": null,
"tax_exempt": "none",
"test_clock": null
}
Request POST body
{
"source": "tok_1NV9oFG9dVKEzZtbbSgEd4di",
"name": "AkshayJuly1801"
}
POST /v1/charges
Status
200 OK
ID
req_Q3jwiMkGFyGTvb
Time
18/07/2023, 05:03:08
IP address
114.143.21.52
API Version
2020-08-27
Source
Stripe/v1 NodeBindings/8.222.0
Idempotency
Key – 43998cae-dada-41f4-88f1-15325da21a99
Request POST body
{
"currency": "usd",
"description": "Payment by undefined",
"amount": "800",
"customer": "cus_OHjGQZhmcG57JX"
}
That request has a post body
Again, the reason the request you shared earlier didn't work was because there was no post body