Aw: Strong Customer Authentication (SCA) STRIPE
Yes,
qui i log:
POST /v1/customers
Stato
200 OK
ID
req_6oI4Hy8aSRHFlp
Orario
18/02/22, 00:02:18
Indirizzo IP
81.31.151.4
Versione API
2020-03-02
Origine
Stripe/v1 PhpBindings/7.27.3
Idempotenza
Chiave — 2fb92d54-1b25-4aec-a881-4a9939641c6b
Corpo risposta
{
"id": "cus_LAeHAY1VlNXudq",
"object": "customer",
"address": null,
"balance": 0,
"created": 1645138938,
"currency": null,
"default_source": null,
"delinquent": false,
"description": null,
"discount": null,
"email": null,
"invoice_prefix": "E4EBB899",
"invoice_settings": {
"custom_fields": null,
"default_payment_method": null,
"footer": null
},
"livemode": false,
"metadata": {
},
"name": null,
"phone": null,
"preferred_locales": [
],
"shipping": null,
"sources": {
"object": "list",
"data": [
],
"has_more": false,
"total_count": 0,
"url": "/v1/customers/cus_LAeHAY1VlNXudq/sources"
},
"subscriptions": {
"object": "list",
"data": [
],
"has_more": false,
"total_count": 0,
"url": "/v1/customers/cus_LAeHAY1VlNXudq/subscriptions"
},
"tax_exempt": "none",
"tax_ids": {
"object": "list",
"data": [
],
"has_more": false,
"total_count": 0,
"url": "/v1/customers/cus_LAeHAY1VlNXudq/tax_ids"
}
}
------------------------------------------------------------------------------------------------------------------
POST /v1/setup_intents
Stato
200 OK
ID
req_2IG66z5VVvangb
Orario
18/02/22, 00:02:18
Indirizzo IP
81.31.151.4
Versione API
2020-03-02
Origine
Stripe/v1 PhpBindings/7.27.3
Idempotenza
Chiave — 3b998ca8-8d28-4580-82a0-43544bc7a966
Corpo risposta
{
"id": "seti_1KUIzOEI6CTxJnqUpliVJUTC",
"object": "setup_intent",
"application": null,
"cancellation_reason": null,
"client_secret": "seti_1KUIzOEI6CTxJnqUpliVJUTC_secret_LAeHSXH1FvaxTVNh7bXNGu0P7d8nUei",
"created": 1645138938,
"customer": "cus_LAeHAY1VlNXudq",
"description": null,
"last_setup_error": null,
"latest_attempt": null,
"livemode": false,
"mandate": null,
"metadata": {
},
"next_action": null,
"on_behalf_of": null,
"payment_method": null,
"payment_method_options": {
"card": {
"request_three_d_secure": "automatic"
}
},
"payment_method_types": [
"card"
],
"single_use_mandate": null,
"status": "requires_payment_method",
"usage": "off_session"
}
Corpo POST richiesta
{
"customer": "cus_LAeHAY1VlNXudq"
}
GET /v1/payment_methods
Stato
200 OK
ID
req_09rCUNdAv8oqst
Orario
18/02/22, 00:02:49
Indirizzo IP
81.31.151.4
Versione API
2020-03-02
Origine
Stripe/v1 PhpBindings/7.27.3
Parametri query richiesta
{
"customer": "cus_LAeHAY1VlNXudq",
"type": "card"
}
------------------------------------------------------------------------------------------------------------------
POST /v1/payment_intents
Stato
400 ERR
ID
req_7Cj5pPvALbOxsr
Orario
18/02/22, 00:02:49
Indirizzo IP
81.31.151.4
Versione API
2020-03-02
Origine
Stripe/v1 PhpBindings/7.27.3
Idempotenza
Chiave — b22d46ba-0d11-4283-9a7f-f214aa6d1211
payment_intent_unexpected_state
You cannot confirm this PaymentIntent because it's missing a payment method. You can either update the PaymentIntent with a payment method and then confirm it again, or confirm it again directly with a payment method.
È stato utile?
Sì
No
{
"customer": "cus_LAeHAY1VlNXudq",
"amount": "1057",
"currency": "EUR",
"description": "Ordine numero 00008615",
"receipt_email": "xxxxxx@gmail.com",
"metadata": {
"orderId": "8615"
},
"off_session": "true",
"confirm": "true"
}
Corpo risposta
{
"error": {
"code": "payment_intent_unexpected_state",
"doc_url": "https://stripe.com/docs/error-codes/payment-intent-unexpected-state",
"message": "You cannot confirm this PaymentIntent because it's missing a payment method. You can either update the PaymentIntent with a payment method and then confirm it again, or confirm it again directly with a payment method.",
"type": "invalid_request_error"
}
}
Corpo POST richiesta
{
"customer": "cus_LAeHAY1VlNXudq",
"amount": "1057",
"currency": "EUR",
"description": "Ordine numero 00008615",
"receipt_email": "xxxx@gmail.com",
"metadata": {
"orderId": "8615"
},
"off_session": "true",
"confirm": "true"
}
https://www.bevisrl.com