Category : stripe-payments

I’m trying to integrate Stripe checkout in an android application. Currently I’m receiving the checkout session ID from the backend . I need to run this js code in application <script src="https://js.stripe.com/v3/"></script> <script> var stripe = Stripe(‘publishable_key’) stripe.redirectToCheckout({ sessionId:session.id }) </script> In web , this code redirects to a page hosted in Stripe . How ..

Read more

Following are the error while working: Not working with sr in script tag like following: <script src="https://js.stripe.com/v3/" async></script> After adding it manually now mounting card but not know how to create checkout after form submission with card values. Following function not working: fetch(‘/create-checkout-session’, { method: ‘POST’, }) .then(function (response) { console.log(‘response’, response); // return response.json(); ..

Read more

Below is my entire function: app.post(‘/create-checkout-session’, async (req, res) => { var userCode = req.body.code; console.log("51: " + userCode) var code = "select * from testclients where CODE = ‘" + userCode + "’" ibmdb.open(ibmdbconnMaster, function(err, conn) { if (err) return console.log(err); conn.query(code, function(err, rows) { if (err) { console.log(err); } console.log("in here") console.log(rows.length) if ..

Read more

I have this on my on my payments.ejs, <head> <script src="https://polyfill.io/v3/polyfill.min.js?version=3.52.1&features=fetch"></script> <script src="https://js.stripe.com/v3/"></script> </head> <div class="box"> <!– <form action="/paymentsPage" method="POST"> –> <div class="input-container"> <input type="text" name="code" id="code" required/> <label>Code</label> </div> <button type="button" class="btn" id="checkout-button">submit</button> <!– </form> –> </div> <!– a312b7a0338d –> <script type="text/javascript"> // Create an instance of the Stripe object with your publishable API ..

Read more