diff --git a/README.md b/README.md index eb5c2787..0ae8f9ce 100644 --- a/README.md +++ b/README.md @@ -81,6 +81,18 @@ $card = $api->invoice->fetch('inv_00000000000001')->cancel(); // Cancel a Regist $card = $api->customer->fetch($customerId)->tokens()->delete($tokenId); // Deletes a token $card = $api->order->create(array('receipt' => '123', 'amount' => 100, 'currency' => 'INR')); // Create an Order to Charge the Customer +// Upi +$upi = $api->customer->create(array('name' => 'Razorpay User', 'email' => 'customer@razorpay.com')); // Creates an customer +$upi = $api->order->create(array('receipt' => '123', 'amount' => 100, 'currency' => 'INR','customer_id'=>'cust_4xbQrmEoA5WJ01','method'=>'upi','token'=>array('max_amount'=>20000,'expire_at'=>1634215992,'frequency'=>'monthly'),'receipt'=>'Receipt No. 1')); // Creates an order +$upi = $api->subscription->createSubscriptionRegistration(array('customer'=>array('name'=>'Gaurav Kumar','email'=>'gaurav.kumar@example.com','contact'=>'9123456780'),'type'=>'link','amount'=>100,'currency'=>'INR','description'=>'Registration Link for Gaurav Kumar','subscription_registration'=>array('method'=>'upi','max_amount'=>'500','expire_at'=>'1634215992'),'receipt'=>'Receipt No. 5','email_notify'=>1,'sms_notify'=>1,'expire_by'=>1634215992)); // Create a Registration Link +$upi = $api->invoice->fetch('inv_00000000000001')->notifyBy('sms'); // Send/Resend Notifications +$upi = $api->payment->fetch($id); // Fetch Token by Payment ID +$upi = $api->customer->fetch($customerId)->tokens()->all(); // Fetch Tokens by Customer ID +$upi = $api->invoice->fetch('inv_00000000000001')->cancel(); // Cancel a Registration Link +$upi = $api->customer->fetch($customerId)->tokens()->delete($tokenId); // Deletes a token +$upi = $api->order->create(array('receipt' => '123', 'amount' => 100, 'currency' => 'INR')); // Create an Order to Charge the Customer +$upi = $api->payment->createRecurring(['email'=>'gaurav.kumar@example.com','contact'=>'9123456789','amount'=>100,'currency'=>'INR','order_id'=>'order_1Aa00000000002','customer_id'=>'cust_1Aa00000000001','token'=>'token_1Aa00000000001','recurring'=>'1','description'=>'Creating recurring payment for Gaurav Kumar']); // Create a Recurring Payment +//For payment authorization in upi please refer this link https://razorpay.com/docs/api/recurring-payments/upi/authorization-transaction/#113-create-an-authorization-payment $card = $api->order->create(array('receipt' => '123', 'amount' => 100, 'currency' => 'INR')); // Create an Order to Charge the Customer $card = $api->customer->fetch($customerId)->tokens()->fetch($tokenId); // Returns a particular token $card = $api->customer->fetch($customerId)->tokens()->delete($tokenId); // Deletes a token @@ -105,7 +117,7 @@ $emandate = $api->payment->createRecurring(['email'=>'gaurav.kumar@example.com', $customer = $api->customer->create(array('name' => 'Razorpay User', 'email' => 'customer@razorpay.com')); // Creates customer $customer = $api->customer->fetch($customerId); // Returns a particular customer $customer = $api->customer->edit(array('name' => 'Razorpay User', 'email' => 'customer@razorpay.com')); // Edits customer -$customer = $api->fundAccount->create(array('customer_id'=>'cust_HxMXzMDXKAXEO7','account_type'=>'bank_account','bank_account'=>array('name'=>'Gaurav Kumar', 'account_number'=>'11214311215411', 'ifsc'=>'HDFC0000053'))); // Create a Fund Account +$customer = $api->fundAccount->create(array('customer_id'=>'cust_HxMXzMDXKAXEO7','account_type'=>'bank_account','bank_account'=>array('name'=>'Gaurav Kumar', 'account_number'=>'11214311215411', 'ifsc'=>'HDFC0000053'))); // Create a Fund Account $customer = $api->fundAccount->all(array('customer_id'=>'cust_HxMXzMDXKAXEO7')); // Fetch All Fund Accounts // Tokens