Stripe configuration in a page

When we need to place stripe payment on the custom as well as the checkout page we need to configure the stripe on the page. Simplest way to configure a stripe on a page is

<form action="url" method="POST">
    <script src="https://checkout.stripe.com/checkout.js" class="stripe-button"
        data-key="public_key"
        data-amount="amount"
        data-name="Company name"
        data-image="logo"
        data-currency="USD"
        data-email="customer email"
        data-locale="en"
        data-label="Confirm & Pay">
    </script>
</form>

It will dispay a stripe payment button on page. While click on the button stripe payment popup will display and customer can able to add the details and can do payment.

After the submission the payment response from stripe will send to the form url.

Thank you.

Leave a comment

Your email address will not be published. Required fields are marked *