Replies: 2 comments 5 replies
-
Hi @rsosag, how are you? thank you for reaching out to us. Can you give us more information about how you are going about creating that subscription? For example, can you share with us a code snippet with more information about the api call and parameters that you used that generated this error? Any other information you find important can also help. |
Beta Was this translation helpful? Give feedback.
-
Hi @rsosag , thanks for sharing this information with me. The error is happening because you are trying to re-use the card token. You should not save it on your side because card tokens are ephemeral, they are only good for a short period of time. Plus, for security reasons and compliance with PCI rules, you should not save any card information on your side and let Mercado Pago handle that for you. The correct way to create a subscription is to get the card id using the Cards API , ask for the user's cvv and use them to create a card token at the moment of creating a subscription with the Javascript SDK (frontend). You can follow the documentation for creating a payment with a saved card as example and just adapt it to create a subscription. |
Beta Was this translation helpful? Give feedback.
-
I know the Ruby SDK doesn't support Subscriptions yet, but maybe you can help me with this issue 👇🏼
I have the following error when generating a subscription to a customer with a saved card. This happens to me with production credentials, any solution to this?
Any information or idea to solve this issue would be helpful.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions