#gdm911_live-mode-testing

1 messages Β· Page 1 of 1 (latest)

lost bridgeBOT
#

πŸ‘‹ Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

πŸ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1271490654601609277

πŸ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

toxic hazelBOT
toxic saffron
#

Hi there πŸ‘‹ apologies, but I'm not sure I'm grasping what you're trying to ask.

#

Would you mind rephrasing your question? And can you share an ID of a payment or request where you saw this behavior?

ebon sable
#

Hi, so the main problem here is:

  • wrong CVV is used during payment process, user fills card, expiration date and invalid CVV
  • but this payment is still accepted by bank and as result by Stripe
  • Stripe PHP SDK treats response from Stripe for this payment as "Your card was declined"
  • as result Stripe take money from user but my website recieves "Your card was declined" and thinks there was no payment
  • in my bank application, of the card I use for testing I see two payments - one is failed with "Invalid CVV" message and one is successful

Payment IDs with problem:
pi_3PltphKKE77vSEip1HGQA1Z8
pi_3PltdxKKE77vSEip1fOohS7l
pi_3PltWLKKE77vSEip07tTwa8N

#

so it sends me error log and "code": "card_declined", but it takes money from the user

lost bridgeBOT
toxic saffron
#

Can you outline the flow for you integration? It looks like there's some direct Payment Method creation, followed by an update to the Payment Method, but then the payment confirmation is coming from details colelcted by the Payment Element. I'm having a bit of a hard time understanding the pattern you're using.

ebon sable
#

I will have to digg into it, as I use an existing integration
I have a website based on Drupal CMSm with the Commerce Stripe module https://www.drupal.org/project/commerce_stripe which is based on Stripe PHP SDK

#

For now I want to understand if this is issue on my/Drupal/SDK/Stripe side

Is it ok that I get this response:

{
"error": {
"code": "card_declined",
....
"type": "card_error"
}
}

even if money are taken from the customer?

I mean this log:
https://dashboard.stripe.com/logs/req_6YxNWpi8ACA3d2?t=1723213144
why do I get it if the payment was successful at the end?

astral venture
#

Hi there πŸ‘‹ taking over, as my colleague needs to step away

Give me a few minutes to get caught up.

#

I wish I could help, but we don't support 3rd party plugins/connectors via this server. It looks like a generic decline and if you're also seeing that money is taken from the customer's bank, then you might want to check with Drupal about how their integration is set up. If a card declines, you shouldn't see any money movement. Most likely another charge was attempted

ebon sable
#

can you help me understand the case "CVV is invalid by Stripe allows payment"

How should this work in perfect world?

If I fill credit card details, send payment attempt, Stripe and bank checks it and decides "Ok CVV is invalid, but IP address looks good, billing information looks good, email matches the name of the user - let`s allow this payement" - what should happen?
There should be only one success payment and there should be no error logs like this one req_6YxNWpi8ACA3d2 - is that statement correct?

astral venture
#

If Stripe accepts a payment with invalid CVV, you won't get a decline

ebon sable
#

hm, interesting

#

Most likely another charge was attempted

Also about this one, ok, lets assume somehow another charge was attempted

but if the first time CVV was invalid - on another charge it is also invalid - me, as a customer never update the CVV (which was invalid) I entered first time

In this case how is that possible?

Trying to understand where it can happen

astral venture
#

We don't have a lot of context on that side of things. For the most part, Stripe and the issuing bank will look at the info given and decide whether or not to allow the payment.

ebon sable
#

two last questions (for nowπŸ˜† )

  1. how can I emulate this scenarion in testing mode? Which testing card should I use, how do I set "Invalid CVV" so I can get emulated "CVV is invalid but payment Success" response?
  2. is there any website with stripe integration for testing, where I can do $1 payments with my card?
astral venture
#
  1. you can test different declines using one of the cards here: https://docs.stripe.com/testing#declined-payments
  2. no, you shouldn't do testing with live cards. All the numbers you should need to test with are contained in the docs I linked above

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 and redirects.

ebon sable
#

you can test different declines
But I do not want a decline, I want success payment while entering invalid CVV

I checked the lists of testing cards, but I do not understand which can I use and how to emulate wrong CVV and get successful payment

#

and I already tried many of them on my setup in testing mode, I can only reproduce this bug in live mode

#

this is the ony case when my integration has issues, all the other cases except "invalid CVV but paument successful" works as expected

astral venture
#

As far as I know, you can't. What are you hoping to achieve by testing this case?

ebon sable
#

Not to spend my money in live modeπŸ˜†

lost bridgeBOT
ebon sable
#

Also I want to check if this is my issue, or integration issue, or it happens on every site integrating Stripe, I can setup some wordpress or something and test there also

#

That would be helpful to have some way to test anything on website where integration is 100% correct, if stripe can do some payment test page with $1 payment that would be great

#

So devs can try it and see - problem in custom integration or on Stripe side

astral venture
#

Yeah it's definitely a question we get a lot, so i'm happy to bring that feedback to the product team