-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add/Delete TPV Bank Account #239
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
9d9a204
Add/Delete TPV Bank Account
ankitdas13 e492d71
update camelcase param and remove space from code
ankitdas13 b37b340
update camelcase param and remove space from code
ankitdas13 3f9aae5
update camelcase param and remove space from code
ankitdas13 21358be
update camelcase param and remove space from code
ankitdas13 d63e32b
update camelcase param and remove space from code
ankitdas13 7cb8247
update camelcase param and remove space from code
ankitdas13 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,7 +77,7 @@ $reversal = $api->transfer->fetch($transferId)->reverse(); // Reverse a transfe | |
$links = $api->payment_link->all(); // fetch all payment links | ||
$link = $api->payment_link->fetch('plink_GiwM9xbIZqbkJp'); // fetch payment link with id | ||
$link = $api->payment_link->create(array('amount' => 98765,'description' => 'For XYZ purpose', 'customer' => array('email' => '[email protected]'))); // create payment link | ||
$link = $api->payment_link->fetch('plink_GiwM9xbIZqbkJp')->cancel(); //cancel payment link | ||
$link = $api->payment_link->fetch('plink_GiwM9xbIZqbkJp')->cancel(); //cancel payment link | ||
|
||
// Invoices | ||
$invoices = $api->invoice->all(); | ||
|
@@ -92,7 +92,7 @@ $invoice->delete(); | |
// Virtual Accounts | ||
$virtualAccount = $api->virtualAccount->create(array('receivers' => array('types'=> arra('bank_account')),'allowed_payers' => array(array('type'=>'bank_account','bank_account'=>array('ifsc'=>'RATN0VAAPIS','account_number'=>'2223330027558515'))),'description' => 'Virtual Account created for Raftar','customer_id' => 'cust_HssUOFiOd2b1TJ', 'notes' => array('project_name' => 'Banking Software'))); //Create a Virtual Account | ||
|
||
$virtualAccount = $api->virtualAccount->fetch('va_HubTH8fZ4tnBnP')->addReceiver(array('types' => array('vpa'),'vpa' => array('descriptor'=>'gauravkumar'))); // Add Receiver to an Existing Virtual Account | ||
$virtualAccount = $api->virtualAccount->fetch('va_HubTH8fZ4tnBnP')->addReceiver(array('types' => array('vpa'),'vpa' => array('descriptor'=>'gauravkumar'))); // Add Receiver to an Existing Virtual Account | ||
$options = array('from'=> 1631099841,'to'=> 1631099852,'count'=> 1); | ||
$virtualAccount = $api->virtualAccount->all($options); // Fetch All Virtual Accounts | ||
|
||
|
@@ -113,7 +113,7 @@ $smartCollect = $api->payment->fetch('pay_8JpVEWsoNPKdQh')->bankTransfer(); // F | |
|
||
$options = array('from'=> 1631099841,'to'=> 1631099852,'count'=> 1); | ||
$smartCollect = $virtualAccount->payments($options); // Fetch Payments made to a Virtual Account | ||
$smartCollect = $api->virtualAccount->fetch('va_HubTH8fZ4tnBnP')->addReceiver(array('types' => array('vpa'),'vpa' => array('descriptor'=>'gauravkumar'))); // Add Receiver to an Existing Virtual Account | ||
$smartCollect = $api->virtualAccount->fetch('va_HubTH8fZ4tnBnP')->addReceiver(array('types' => array('vpa'),'vpa' => array('descriptor'=>'gauravkumar'))); // Add Receiver to an Existing Virtual Account | ||
$smartCollect = $virtualAccount->close(); // Close a Virtual Account | ||
|
||
// Bharat QR | ||
|
@@ -139,7 +139,7 @@ $subscription = $api->subscription->create(array('plan_id' => 'plan_7wAosPWtrkh | |
$subscription = $api->subscription->create(array('plan_id' => 'plan_HoYg68p5kmuvzD','total_count' => 12,'quantity' => 1,'expire_by' => 1633237807,'customer_notify' => 1, 'addons' => array(array('item'=>array('name' => 'Delivery charges','amount' => 30000,'currency' => 'INR'))),'offer_id' => 'offer_HrkIvgue2Uneqd','notes'=>array('notes_key_1'=>'Tea, Earl Grey, Hot','notes_key_2'=>'Tea, Earl Grey… decaf.'),'notify_info'=>array('notify_phone' => '9123456789','notify_email'=> '[email protected]'))); // Create a Subscription Link | ||
|
||
$subscription = $api->subscription->fetch('sub_82uBGfpFK47AlA'); // Fetch Subscription by ID | ||
$subscriptions = $api->subscription->all(); // Fetch All Subscriptions | ||
$subscriptions = $api->subscription->all(); // Fetch All Subscriptions | ||
$subscription = $api->subscription->fetch('sub_82uBGfpFK47AlA')->cancel($options); //$options = ['cancel_at_cycle_end' => 1]; | ||
$subscription = $api->subscription->fetch('sub_82uBGfpFK47AlA')->update($options); //$options = ['plan_id'=>'plan_00000000000002','offer_id'=>'offer_JHD834hjbxzhd38d','schedule_change_at'=>'cycle_end','quantity'=>5]; //Update a Subscription | ||
$subscription = $api->subscription->fetch('sub_82uBGfpFK47AlA')->pendingUpdate(); // Fetch Details of Pending Update | ||
|
@@ -148,7 +148,7 @@ $subscription = $api->subscription->fetch('sub_82uBGfpFK47AlA')->pause(['pause_ | |
$subscription = $api->subscription->fetch('sub_82uBGfpFK47AlA')->resume(['resume_at'=>'now']); // Resume Subscription | ||
$subscription = $api->subscription->fetch('sub_82uBGfpFK47AlA')->deleteOffer('offer_JHD834hjbxzhd38d') // Delete an Offer Linked to a Subscription | ||
$subscription = $api->invoice->all(['subscription_id'=>'sub_HvNIkQUz9I5GBA']); // Fetch All Invoices for a Subscription | ||
//For authentication transaction in subscription please refer this link https://razorpay.com/docs/api/subscriptions/#authentication-transaction | ||
//For authentication transaction in subscription please refer this link https://razorpay.com/docs/api/subscriptions/#authentication-transaction | ||
|
||
$attributes = array( 'razorpay_signature' => $razorpaySignature, 'razorpay_payment_id' => $razorpayPaymentId, 'razorpay_subscription_id' => $razorpaySubscriptionId); | ||
$subscription = $api->utility->verifyPaymentSignature($attributes); // Payment Verification | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you format this code properly