#kd - card decline

1 messages ยท Page 1 of 1 (latest)

wispy reef
#

Catching up on some threads. Will be with you in a moment

earnest parcel
#

sure, no worries.

wispy reef
#

Can you share the request ID?

earnest parcel
#

req_p72ZtyMn7LOMK9

wispy reef
#

Ok thanks. Checking

#

If you really want to skip validation you can pass in validate=false to the request

#

But that "charge" was declined due to excessive retries. looks like you've been trying many times today

earnest parcel
#

So if I pass in validate=false it should work or is it not going to work b/c I've tried too many times today?

wispy reef
#

That should work because it will skip validation

earnest parcel
#

Ok, last question: how do I pass in validate=false in the request, exactly? I don't see this mentioned in the docs

wispy reef
#

Yeah it's not in the docs actually because we don't recommend to use it heavily. It might be useful in this specific scenario though

#

Just pass it in top-level I believe

nocturne lindenBOT
#

This thread has been archived. If you need help with anything else please ask in #dev-help or contact Stripe Support: https://support.stripe.com/contact

hidden lance
#

moving it here so that we can keep the context in the same thread ๐Ÿ™‚

I am trying to pass in validate: false in PHP but I am getting an error. How do I correctly write the syntax to include validate: false in PHP ? error: Parse error: syntax error, unexpected '=>' (T_DOUBLE_ARROW), expecting ')' in /home/blink/public_html/testing/test.php on line 40
Line 40 is 'validate' => false,

$stripe->paymentMethods->update(
'pm_1KMqzzD76OiRybWDIzu9ZWlJ',
'validate' => false,
['billing_details' => ['address' => ['postal_code' => 'bl12tn']]]
);

#

I'm not a PHP pro but let's see ๐Ÿ˜…
could you try moving validate in the array along side billing_details

earnest parcel
#

I can't test it right now. I'd have to do it later. Was just wondering if you had the correct syntax on-hand. The following worked in Ruby:

#

puts Stripe::PaymentMethod.update(
'pm_1KMqzzD76OiRybWDIzu9ZWlJ',
validate:false,
billing_details: {address: {postal_code: 'T12DK37'}}
)

#

But not sure how to get it to work in PHP & I can't test it right now - just wondering if you have the syntax availabel;

hidden lance
#

Unfortunately, we don't have it documented on our public docs. I'd be trial-and-error at this point. Highly likely that it should work once you move it along side billing_details