#Nemephir
1 messages ยท Page 1 of 1 (latest)
This customer if not deleted
But, 2 months later, when I would use this customer id to create another payment intent, je customer no longer exists.
Can you share a request ID (req_xxx) where you see an error for this customer?
Why I can't find it on the summary of customers and on the complete exported document.
I'll try to get that.
If you have questions about the dashboard or reports, you should ask Stripe support directly: https://support.stripe.com/contact
But if you search cus_NG77fovxBwAwFE in the dashboard search bar you should be able to find it since it's not deleted (assuming you are logged in the correct account).
Okay, the problem may not come from the user, but probably from the payment card. (I have one error message for many requests).
The Api cannot found registred card for this customer.
On database, I've saved the card pm_1MVatBDcF2myXw9KRLEmgWrW.
Can you confirm the existance or not of this payment method ?
The Api cannot found registred card for this customer.
Can you share the exact request ID where you get an error?
You can find it here https://dashboard.stripe.com/test/logs
req_nTpL1Ddk5en8OF
Hey! Taking over for my colleague. Let me catch up.
This request is a successful API call
we need the request that return the error you are facing
Yes, but, when I've create the first paymennt, the API savent the customer card to : pm_1MVatBDcF2myXw9KRLEmgWrW.
This request today said me the user haven't registred payment method. Why ?
The problem arrived for 80% percent of payments.
Because that payment method isn't attached to a customer
how are you creating it ?
In order to reuse a PaymentMethod you need to check this full guide:
https://stripe.com/docs/payments/save-during-payment
/lock
yes, thanks
On development, I have the customer cus_NjHA6KNNLesCnQ with payment pm_1MxocQDcF2myXw9KBvm7owCw
On production, the customer cus_NG77fovxBwAwFE was saved the payment method pm_1MVatBDcF2myXw9KRLEmgWrW ; but now, when I call the PM list of this customer (req_nTpL1Ddk5en8OF), API return 0 cards.
I don't see anything on https://dashboard.stripe.com/customers/cus_NG77fovxBwAwFE indicating that customer has or ever had a saved card.
That payment method pm_1MVatBDcF2myXw9KRLEmgWrW was used in a one-off payment :
https://dashboard.stripe.com/payments/pi_3MVastDcF2myXw9K3OOkYTdt 3 months ago, I see nothing about that payment that associates it with that customer.
there's nothing in the contents of the API requests you made that seem to show that we were supposed to save that payment method to the customer, maybe something went wrong in your system at the time?
I try to understand
Your colleague send-me this link : https://stripe.com/docs/payments/save-during-payment. But, I don't see the required code to save the card. We use the elements on front. And test customer https://dashboard.stripe.com/test/customers/cus_NjHA6KNNLesCnQ have the card save. It is the exactly same code.
In that doc https://stripe.com/docs/payments/save-during-payment the code that you are looking for is setup_future_usage: 'off_session',
In the payment intent create code
That will tell stripe to save the payment method that is used to pay that payment intent
I see that you used that parameter for this payment intent https://dashboard.stripe.com/test/logs/req_tvNGa1x6bBAXfw
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Thank for the specification.
setup_future_usage is alreay availabled.
It looks like that customer does have that payment method saved now https://dashboard.stripe.com/test/customers/cus_NjHA6KNNLesCnQ
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
The 4242 card that is saved to that customer is the one that you used to pay pi_3Mxqw1DcF2myXw9K3CkvWo6Y
Yes for this test. It is a testing make this morning during this conversation time to test what we said. I haven't updating the code. It work for this test but not on production.
For https://dashboard.stripe.com/customers/cus_NG77fovxBwAwFE I don't see any payment intents at all. So there wouldn't have been a chance for a card to get saved to them
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
If you use setup_future_usage in production, it will save these cards. If that has not been happening then your code does not use this parameter in production. If you have another customer that you think used setup_future_usage but didn't save a card, send me their ID and I can look further.
I check for most recent users
We have this user, customer today in production : cus_NjJaCQIWd98mdm
https://dashboard.stripe.com/customers/cus_NjJaCQIWd98mdm
Payment method returned by the API : pm_1MxqyJDcF2myXw9KTzzNiOKo
And him created yesterday
cus_Nj1PebUGxaTxJo
https://dashboard.stripe.com/customers/cus_Nj1PebUGxaTxJo
Payment method returned by the API : pm_1MxZNbDcF2myXw9KxnLiZPgp
Same problem.
Thanks for the IDs. I am looking in to them and will tell you what I find
So it looks like those payment methods were created by these two payment intents: pi_3MxZMFDcF2myXw9K2Nc6IEdd and pi_3MxqxZDcF2myXw9K3Uhxh0f1
And both of them have setup_future_usage set
But you didn't set the customer field, so those payments are not associated with those customers
If you provide customer and setup_future_usage then these cards will be saved
Have you the link of these requests ?
https://dashboard.stripe.com/logs/req_xV0joMRwjXKqo3
https://dashboard.stripe.com/logs/req_49E0J61x2aEbMZ
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Ah !
I think I know what the problem is.
When you receive a null value, it will be removed on log ?
When I receive the customer id, I save it on database, and after that, I read it on the database. But this database have a cache. This created problems for me many years ago.
Hi there ๐ jumping in as my teammate needs to step away soon. Yes, if your code provides a null value for a parameter, our SDKs filter that out and do not include it in the request. (Please let me know if I seem to have misunderstood the question)