ok
Direktori : /home2/selectio/www/limpiar.in.net/resources/views/frontend/payhere/ |
Current File : /home2/selectio/www/limpiar.in.net/resources/views/frontend/payhere/customer_package_form.blade.php |
<form style="display: none" method="POST" action="{{ \App\Utility\PayhereUtility::get_action_url() }}" id="payhere-wallet-form"> <input type="hidden" name="merchant_id" value="{{ env('PAYHERE_MERCHANT_ID') }}"> <!-- Replace your Merchant ID --> <input type="hidden" name="return_url" value="{{ route('payhere.customer_package_payment.return') }}"> <input type="hidden" name="cancel_url" value="{{ route('payhere.customer_package_payment.cancel') }}"> <input type="hidden" name="notify_url" value="{{ route('payhere.customer_package_payment.notify') }}"> <br><br>Custom Params<br> <input type="text" name="custom_1" value="{{ $user_id }}"> <input type="text" name="custom_2" value="{{ $package_id }}"> <br><br>Item Details<br> <input type="text" name="order_id" value="{{ $order_id }}"> <input type="text" name="items" value="{{ translate("Customer Package Payment") }}"><br> <input type="text" name="currency" value="{{ env('PAYHERE_CURRENCY') }}"> <input type="text" name="amount" value="{{ $amount }}"> <br><br>Customer Details<br> <input type="text" name="first_name" value="{{ $first_name }}"> <input type="text" name="last_name" value="{{ $last_name }}"><br> <input type="text" name="email" value="{{ $email }}"> <input type="text" name="phone" value="{{ $phone }}"><br> <input type="text" name="address" value="{{ $address }}"> <input type="text" name="city" value="{{ $city }}"> <input type="hidden" name="country" value="Sri Lanka"><br><br> <input type="hidden" name="hash" value="{{ $hash_value }}"> <input type="submit" value="Buy Now"> </form> <script type="text/javascript"> var payhere_wallet_form = document.getElementById('payhere-wallet-form'); payhere_wallet_form.submit(); </script>