Use this one
How to integrate razorpay Payment gateway in laravel 5.5 ?
i am working on laravel 5.5 project
i cant understand how to integrate razorpay packages
i study some reference link but can't find solution so please give some suggestion how to integrate razorpay step by step
thank you
yes i try this thanks but
when i try to get dynamic value for example
my field value 18000 but every time display 180
so how can i overcome issue
here is my javascript code
<script>
var options = {
key: "{{ env('RAZORPAY_KEY') }}",
amount: '{!! ($trainingapply->fees) !!}',
name: 'CodesCompanion',
description: 'Fees',
handler: demoSuccessHandler
}
</script>
please suggest how to solved
please give some suggestion how to integrate razorpay step by step
@van1310 No one is going to write you a step-by-step guide on how to integrate a payment gateway.
thanks you sir
when my database value in fees 12000 but display everytime 120 so how to overcome ?
<script>
var options = {
key: "{{ env('RAZORPAY_KEY') }}",
amount: '{!! ($trainingapply->fees) !!}',
name: 'CodesCompanion',
description: 'Fees',
handler: demoSuccessHandler
}
</script>
please help me out i need your help
i Solved myself amount variable multiply by my field
here is my controller
$trainingapply = Trainingapply::where('user_id','=',$user->id)->first();
$total = ($trainingapply->fees * 100);
here is my javascript file
<script>
var options = {
key: "{{ env('RAZORPAY_KEY') }}",
amount: '{!! ($total !!}',
name: 'CodesCompanion',
description: 'Fees',
handler: demoSuccessHandler
}
</script>
Try to multiply the amount with 100. It will definitely work
Most payment processors accept the value in cent or pence etc. You could cleanup your code by using a mutator to modify the fees field ready for when you retrieve it on the model:
You have multiply total amount to 100 bcz razor pay use smallest value.
Please or to participate in this conversation.