#özgür-subscriptions

1 messages · Page 1 of 1 (latest)

gentle hamlet
#

@jaunty lintel hi! well ideally you would change your flow to not do that, and instead operate the way in the documentation(create an incomplete subscription on the server ,return back the PaymentIntent to the frontend, and have the frontend call confirmCardPayment which will collect the card details, do 3D Secure if required, charge the card, and activate the subscription).

#

can you say more about how exactly you collect the card details right now?

jaunty lintel
#
const paymentMethod = await this.stripe.paymentMethods.create({
            type: 'card',
            card: {
              exp_month: subscription.paymentCard.expireMonth,
              exp_year: subscription.paymentCard.expireYear,
              number: subscription.paymentCard.cardNumber,
              cvc: subscription.paymentCard.cvc
            }
          });

#

we send card object to server

gentle hamlet
#

ok so you pass raw credit card numbers from your backend Node.js server?

jaunty lintel
#

previous dev implemented in that way but as a downside we cant use 3d secure

#

so I try to migrate to the doc I send

gentle hamlet
#

I'd start by making sure you understand the PCI implications of sending raw cards that way first before building more code on this base.
Overall you should maybe start somewhat fresh with those guides so you do use Elements, or just use Checkout, it's much easier! (https://stripe.com/docs/billing/subscriptions/checkout)