The card was declined
-
Hi,
when I simulate payment with Stripe test mode everything works fine, but after I activate live mode, error “the card was declined” occurs.
I really don’t know how to fix it.
Can you help me please?The page I need help with: [log in to see the link]
-
Hi there @davide2580,
when I simulate payment with Stripe test mode everything works fine, but after I activate live mode, error “the card was declined” occurs.
Interesting! Can you please confirm that you’re using a real card when testing Stripe in live mode?
If yes, please make sure you enabled Stripe logging in WooCommerce > Settings > Payments > Stripe, then place a live order again and copy logs for it from WooCommerce > Status > Logs (choose
stripe
from the drop-down) to your reply here.Please don’t forget to remove any sensitive information from the logs (phone numbers, email addresses, etc).
Cheers!
Hi, thank you for your reply.
This is the order I placed some minutes ago10-22-2019 @ 11:57:21 –
====Stripe Version: 4.1.16====
====Start Log====
sources/src_1FWLzGFISh8DesZPD1xk5QKJ
====End Log====10-22-2019 @ 11:57:22 –
====Stripe Version: 4.1.16====
====Start Log====
Info: Begin processing payment for order 6465 for the amount of 105
====End Log====10-22-2019 @ 11:57:22 –
====Stripe Version: 4.1.16====
====Start Log====
charges request: Array
(
[currency] => eur
[amount] => 10500
[description] => – Order 6465
[capture] => true
[expand[]] => balance_transaction
[metadata] => Array
(
[customer_name] => //
[customer_email] => //
[order_id] => 6465
)[source] => src_1FWLzGFISh8DesZPD1xk5QKJ
)====End Log====
10-22-2019 @ 11:57:23 –
====Stripe Version: 4.1.16====
====Start Log====
Error: stdClass Object
(
[error] => stdClass Object
(
[charge] => ch_1FWLzKFISh8DesZP7vJGn2Ck
[code] => card_declined
[decline_code] => test_mode_live_card
[doc_url] => https://stripe.com/docs/error-codes/card-declined
[message] => Your card was declined. Your request was in test mode, but used a non test (live) card. For a list of valid test cards, visit: https://stripe.com/docs/testing.
[type] => card_error
))
====End Log====
It seems I was in test mode but It is disabled!
Hi there @davide2580,
[message] => Your card was declined. Your request was in test mode, but used a non test (live) card. For a list of valid test cards, visit: https://stripe.com/docs/testing.
Can you please confirm that you not only disabled Test mode, but also copied over Stripe live keys per our docs – https://docs.woocommerce.com/document/stripe/#section-46
You can switch between test and live keys here – https://dashboard.stripe.com/apikeys
Let me know if you still see an error!
I re-insert my live keys and I tried again.
The error “Card declined” occurs but this is the log.10-22-2019 @ 12:18:39 –
====Stripe Version: 4.1.16====
====Start Log====
sources/src_1FWMJrFISh8DesZP9g4D4Ycf
====End Log====10-22-2019 @ 12:18:40 –
====Stripe Version: 4.1.16====
====Start Log====
Info: Begin processing payment for order 6465 for the amount of 105
====End Log====10-22-2019 @ 12:18:40 –
====Stripe Version: 4.1.16====
====Start Log====
charges request: Array
(
[currency] => eur
[amount] => 10500
[description] => – Order 6465
[statement_descriptor] =>
[capture] => true
[expand[]] => balance_transaction
[metadata] => Array
(
[customer_name] =>
[customer_email] =>
[order_id] => 6465
)[source] => src_1FWMJrFISh8DesZP9g4D4Ycf
)====End Log====
10-22-2019 @ 12:18:42 –
====Stripe Version: 4.1.16====
====Start Log====
Error: stdClass Object
(
[error] => stdClass Object
(
[charge] => ch_1FWMJwFISh8DesZPt5iOauev
[code] => card_declined
[decline_code] => insufficient_funds
[doc_url] => https://stripe.com/docs/error-codes/card-declined
[message] => Your card has insufficient funds.
[type] => card_error
))
====End Log====
10-22-2019 @ 12:18:44 -
====Stripe Version: 4.1.16====
====Start Log====
Could not find order via charge ID: ch_1FWMJwFISh8DesZPt5iOauev
====End Log====I suppose it works, but I have no money on my card. Is that true?
Hi @davide2580,
[message] => Your card has insufficient funds.
I suppose it works, but I have no money on my card. Is that true?Yes, indeed ?? This is from Stripe docs – https://stripe.com/docs/declines/codes :
insufficient_funds The card has insufficient funds to complete the purchase. The customer should use an alternative payment method.
I’m going to mark this as resolved – if you have any further questions, you can start a new thread.
Great! Thank you Elvira for your help!
You’re very welcome, @davide2580!
I’m getting ‘this card is declined’ error in test mode. I have both API and secret keys for test and live modes copied into settings. I used the test card number, etc and got ‘invalid customer information’ because my check requires all contact info, which was using my real info and the 4242424 card info. then I did another test with my info and my real card and got ‘this card invalid.
using woocommerce with this stripe plugin
paul
- The topic ‘The card was declined’ is closed to new replies.