#AntonKotov

1 messages ยท Page 1 of 1 (latest)

earnest basaltBOT
tacit bluff
#

I think we have another test card for that, checking in to this and will get back

#

Looks like we do, we call it "Decline after attaching" on our test cards page https://stripe.com/docs/testing?testing-method=payment-methods

Use test cards to validate your Stripe integration without moving real money. Test a variety of international scenarios, including successful and declined payments, card errors, disputes, and bank authentication. You can also test non-card payment methods.

#

You can use 4000000000000341 in forms or pass in pm_card_chargeCustomerFail anywhere our API is expecting a payment method ID

tender fossil
#

Thank u ๐Ÿ™‚

tender fossil
#

sorry, but this card verifying on your side

earnest basaltBOT
waxen sorrel
#

๐Ÿ‘‹

#

Are you attempting to use that card with a PaymentIntent here?

#

Do you have a request ID that you can share that corresponds with that error?

tender fossil
#

POST
https://api.stripe.com/v1/payment_pages/cs_test_a1QWG5tR3DdizgU5FiHiqXJhziQYCqTD0KDgM5I9g2vAU2cUtEwzzZESsg/confirm

Response:
{
"charge": "ch_3N1AYPLwVbeKJN9e1vHnMxKu",
"code": "card_declined",
"decline_code": "generic_decline",
"doc_url": "https://stripe.com/docs/error-codes/card-declined",
"extra_fields": {
"recommended_payment_method": "debit_card"
},
"message": "Your card was declined.",
"payment_method": {
"id": "pm_1N1AYOLwVbeKJN9evOff9B0f",
"object": "payment_method",
"billing_details": {
"address": {
"city": null,
"country": "LV",
"line1": null,
"line2": null,
"postal_code": null,
"state": null
},
"email": "admin",
"name": "123123",
"phone": null
},
"card": {
"brand": "visa",
"checks": {
"address_line1_check": null,
"address_postal_code_check": null,
"cvc_check": null
},
"country": "US",
"exp_month": 12,
"exp_year": 2023,
"funding": "credit",
"generated_from": null,
"last4": "0341",
"networks": {
"available": [
"visa"
],
"preferred": null
},
"three_d_secure_usage": {
"supported": true
},
"wallet": null
},
"created": 1682524008,
"customer": null,
"livemode": false,
"type": "card"
},
"request_log_url": "https://dashboard.stripe.com/test/logs/req_fZxw8kixwMpoxX?t=1682524009",
"type": "card_error"
}

Learn more about error codes and how to resolve them.

waxen sorrel
#

Yeah this is a payment mode Checkout Session so you aren't just attaching the card to a Customer here

#

You would use setup mode to just collect the Card details but not charge

#

Otherwise that test card will be declined on charge

tender fossil
#

okey, than u ๐Ÿ™‚