Establishing a Razorpay payment link is a simple procedure that enables companies and individuals to provide a URL that accepts payments from clients. This is a quick guide on how to make a payment link for Razorpay
STEPS
Index-Payment-Link.php
require 'vendor/autoload.php';
use Razorpay\Api\Api;
$key_id = "your_api_key";
$secret = "your_secret_key";
$amount = 155*100;
$api = new Api($key_id, $secret);
$result = $api->paymentLink->create(
array('amount'=>$amount, 'currency'=>'INR', 'accept_partial'=>true,
'first_min_partial_amount'=>100, 'description' => 'For Code with Code Service Charge', 'customer' => array('name'=>'Code With Code','email' => 'info@codewithcode.com', 'contact'=>'+919631116311'), 'notify'=>array('sms'=>true, 'email'=>true) ,
'reminder_enable'=>true ,'notes'=>array('policy_name'=> 'Jeevan Bima'),'callback_url' => 'http://localhost/razorpay-payment-gateway-integration/paymentsuccess.php/', 'callback_method'=>'get'
)
);
//print_r($result);
$PaymentLink = $result['short_url'];
header('Location: '.$PaymentLink);
PaymentSuccess.php
Payment Successfull
Payment Success / Failed - Call Back-Url
razorpay_payment_link_status
razorpay_payment_id
razorpay_payment_link_id
razorpay_signature
Thanks a lot for sharing this with all folks you actually recognise what you are speaking approximately!
Bookmarked. Please additionally seek advice from my website =).
We could have a link alternate agreement among us