Created
October 23, 2018 13:22
-
-
Save ajuchacko/4888eba2da1658df25741c7f122ba5a4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form action="<?= url('process') ?>" method="POST"> | |
<script | |
src="https://checkout.razorpay.com/v1/checkout.js" | |
data-key="<?= getenv('RAZORPAY_KEY') ?>" | |
data-amount="<?= 5000 ?>" | |
data-currency="INR" | |
data-name="<?= 'Vendor Inc' ?>" | |
data-prefill.method="netbanking" | |
data-description="<?php echo 'description of purchase' ?>" | |
data-prefill.name="<?php echo 'Aju chacko' ?>" | |
data-prefill.email="<?php echo '[email protected]'?>" | |
data-prefill.contact="<?php echo '+919677348348' ?>" | |
data-order_id="<?= session('order_id') ?>" // order_id we generate at backend using razorpay gateway api. | |
> | |
</script> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment