0

i am using stripe terminal reader for payment collection (using Node js), when i do second step of collect payment i.e., process the payment...it is giving me error "TypeError: stripe.terminal.readers.processPaymentIntent is not a function".

document link : https://stripe.com/docs/terminal/payments/collect-payment?terminal-sdk-platform=server-driven#process-payment

below is my code:

 process_stripe_payment(req, callback){
        stripe.terminal.readers.processPaymentIntent( 
            'reader_id',
            {payment_intent: 'payment_intent'}
        ),function(err, res){
            console.log(err);
            if(res){
                console.log('success');
            }else{
                console.log('failed');
            }
        };
  },
Steven Spungin
  • 27,002
  • 5
  • 88
  • 78
Viral
  • 31
  • 2

0 Answers0