How can I get localized error messages from Stripe - stripe-payments

One of our customers triggered a "Your card has insufficient funds." error during card registration (we only issue a charge at a later time) and we weren't able to show a helpful error message because we didn't have a localization for this error. While my sibling-question Show (localized) payment source registration errors directly in Stripe Elements tries to work around the issue by avoiding to have to display the error at all, there are other places in our payment flow where our backend has to deal with payment errors (e.g. to send the user a mail stating the reason for the payment failure).
Is it possible to get a localized error text from stripe or is there a complete list of possible error codes so we can localize the messages ourselves? (We are using the stripe ruby gem, if that is of relevance.)

This gem might be useful for you here: https://github.com/ekosz/stripe-i18n

Related

Facebook Messages RESPONSE call working for my testing team, but not for FB testing team

I am creating a messaging app using Facebook messenger. I have been testing it thoroughly with my own account and another "tester" account. It works as expected for the two of us.
When submitting it for approval, the Facebook testing team messaged our page, but I received a ((#-1) Unexpected internal error) message when calling the RESPONSE api to reply.
Any ideas? I find it hard to believe this is an error on Facebook's end, but this is what's showing up for me.
Thank you in advance!
Detailed error message:
code:-1
error_subcode:2018012
message:(#-1) Unexpected internal error
type:OAuthException
I tried re-submitting the API call, but received the same error. I checked to see if it would work with another Recipient ID (my own), and it did. I'm not sure if this is a matter of approvals from Facebook's end, and if it's one of those cyclical situations where 'they need to approve me for it to be approved' or not.

Customer cus_* already has the maximum number of payment methods attached

Almost never worked with a stripe.
Once I solved the problem with payment and that's it.
There is a site on which the user orders some stuff. Well, for payment - he attaches his card. Where the Stripe error is popping up with the text: "Customer cus_* already has the maximum number of payment methods attached."
why is this happening? Is there a maximum reached and what is it? how can i get rid of this error?
You are seeing this error message, maximum number of payment methods attached as there is a limit on how many payment methods can be attached to a specific customer. There are limits for cards and for sources.
To correct this, you can remove some of the existing payment methods from that customer. Moving forward, you can periodically detach payment methods that are older or won't need to be used again in your integration.

Plaid with Stripte PRODUCT_NOT_READY 400 Error

I used ACH transfer with plaid and stripe my website.
Bank connections are currently working. However, after connecting their bank account, the user gets a 400 server error that prevents them from being redirected to the dashboard.
I believe the error code associated with this issue is PRODUCT_NOT_READY
https://plaid.com/docs/errors/assets/#product_not_ready.
The server is a node server.
I want to know how I can fix this error.
Regards
Are you tracking the webhook? It seems that the server will send you a WebHook to the endpoint and only after that the resource will be available.
The Plaid server will send you a PRODUCT_READY webhook before you can call /asset_report/get
The PRODUCT_NOT_READY error you linked to is of type ASSET_REPORT_ERROR. If you're using Plaid for ACH transfers, you're probably not using Assets and you're probably getting the PRODUCT_NOT_READY error of type ITEM_ERROR. For that error, the likely causes listed are:
/transactions/get was called before the first 30 days of transaction data could be pulled. [Not relevant to you if you're not using transactions]
/auth/get was called on an Item that hasn't been verified, which is possible when using micro-deposit based verification [probably the cause of your problem]
Like Nikolas L. says, you will need to listen for webhooks, in this case to be alerted when the Item has been verified.

Client error handling for custom stripe checkout

I'm trying to catch Stripe errors that customer sees after entering invalid card data. I'm using Stripe checkout.js in the same way like in another StackOverflow question: Error handling for custom stripe checkout
And according to the #Ywain answer there (https://stackoverflow.com/a/43896401/5008606)
Checkout validates the card information with the issuing bank. If the information is invalid, then the error is displayed directly to the customer in the popup form
What can I do to be aware of such errors (in order to log them)? Can I disable frontend errors and catch all errors in the backend? Or is there some way to catch such errors in a javascript handler? Thanks!

How do I check if a mobile number is on WhatsApp or not with programming?

I wanted to build a web-based system using which you will come to know whether the mobile number is registered with WhatsApp or not? It's just to check whether the number entered in textbox have WhatsApp account or not?
I tried finding resources regarding the same but unable to get any solution on it, please share some link for reference so, I can implement it and get to the final result.
You can use the Whatsapp API through Wassenger of Waboxap to send a text message and via webhook service like Loggly determine if the message was delivered. The person will however get a message, which might cause them to block you.

Resources