Forum Academy Marketplace Showcase Pricing Features

Stripe.js - Create - Charge


I’m trying to create charges on my web app using stripe.js 2 but can’t seem to figure out how to do this.

My specific use case is the owner of a business is charging a client using their credit card info that was shared by the end customer in person.
Customer A goes/calls Business ABC and wants to buy product 123. Business ABC wants to charge the customer.

What is the workflow to for business ABC to charge Customer A for a single product?

I have the stripeElement on the page
When confirm button is clicked:
1- create a paymentmethod with Stripe Element

When paymentmethod was created
3- create a customer
4- paymentmethod - attach
5- customer update - update the payment method
6- charge - create

Nothing happens.

Thank you for your help