Place an order using the PaymentElement
NOTE: Place this file inside your Magento pub/ directory to avoid CORS restrictions.
Configuration
Step 1: Create a guest cart
Step 2: Add product to cart
Step 3: Set guest email address
Step 4: Set shipping address
Step 5: Set billing address
Step 6: Set shipping method
Step 7: Collect a payment method
Step 8: Set the payment method
Place order