#Pedru - Credt Card Validation

1 messages · Page 1 of 1 (latest)

dense isle
#

Can you provide more details on your integration?

iron radish
#

Yep

#

I integrated with stripe to create subscriptions consuming certain endpoints directly in JS code on the front end, however I had problems saving some variables due to memory problems in some browsers. So I decided to create everything in services consuming only one URL but I created the service in node with TS in firebase functions and did some tests on the two integrations and realized that the integration in node with TS allows me to save the card with the year of wrong expiration but the old integration did not allow and gave error. I would like to know why this is happening.

dense isle
#

Do you have any request IDs that I could take a look at?

iron radish
#

Now it cames an error

#

hahaha

#

It's everything right, but i swear it cames a success with the wrong cvc

iron radish
dense isle
#

Well if you can find an example I'd be happy to take a look

iron radish
#

req_bnYU5MwnHhyzMZ

#

In this request it returned successes even with the wrong exp year

dense isle
#

Woah this /v1/tokens....that's an old API

iron radish
#

Ok hahaha

#

which api do you suggest I consume to create subscriptions?

#

I'm open to suggestions

dense isle
#

Well the ones I"m most familiar with use Stripe.JS to create payment elements (which triggers a client side request to /payment_methods

iron radish
#

Let me explain to you what I do

#

First I consume v1/costumers -> v1/tokens -> v1/customers/(customer Id)/sources -> stup_intents -> v1/subscriptions

#

Would it be possible for me to reduce this consumption of api, perhaps consuming less api?

dense isle
#

When you say "consume" could you be more specific? Are you creating customers, creating tokens, assigning tokens to customers, generating setup intents, then generating subscriptions? Are these calls all part of single worklfow?

dense isle
iron radish
#

I did it this way because I don't want to use anything from the stripe just the URLs

#

I mean, no stripe graphics

dense isle
#

That means you are handling raw card #s. You should be extremely certain you are PCI compliant

#

One of the highest value propositions of using Stripe.JS is you offload very high risk PCI compliance (i.e. transmitting raw card info) to Stripe so we can worry about that for you

iron radish
#

Got it, I will raise this issue in my company

#

Thanks a lot for all the help

dense isle
#

You're very welcome!