Change "Save Order" to "Pay"!

This is serious business. Pay for your order!

Say this was your "Save Order" button and the form surrounding it:

<form action="/save-order" method="POST">
 <input type="hidden" name="email_prepared_for_paystack" value="<?php echo $email; ?>"> 
 <input type="hidden" name="amount" value="<?php echo $amount_in_kobo; ?>"> 
 <input type="hidden" name="cartid" value="<?php echo $cartid; ?>"> 
 <button type="submit" name="save_order" id="save-order" title="Save Order">Save Order</button>
</form>

Change it to:

<form action="/save-order-and-pay" method="POST">
 <input type="hidden" name="email_prepared_for_paystack" value="<?php echo $email; ?>"> 
 <input type="hidden" name="amount" value="<?php echo $amount_in_kobo; ?>"> 
 <input type="hidden" name="cartid" value="<?php echo $cartid; ?>"> 
 <button type="submit" name="pay_now" id="pay-now" title="Pay now">Pay now</button>
</form>

Of course, clicking the button should save the order first :smile:

Now we are ready to add Paystack. Choose an option below to continue.