Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/optimoapps/razorpay-x
Razorpay X Laravel Package :rocket:
https://github.com/optimoapps/razorpay-x
india laravel laravel-package laravel6-package laravel7 laravel8 money-transfer payment-gateway payments razorpay razorpay-api razorpay-php razorpayx
Last synced: 3 months ago
JSON representation
Razorpay X Laravel Package :rocket:
- Host: GitHub
- URL: https://github.com/optimoapps/razorpay-x
- Owner: OptimoApps
- License: mit
- Created: 2020-06-08T07:25:19.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-04-06T05:58:11.000Z (over 1 year ago)
- Last Synced: 2024-10-11T11:20:10.444Z (3 months ago)
- Topics: india, laravel, laravel-package, laravel6-package, laravel7, laravel8, money-transfer, payment-gateway, payments, razorpay, razorpay-api, razorpay-php, razorpayx
- Language: PHP
- Homepage: https://www.optimoapps.com/
- Size: 79.1 KB
- Stars: 9
- Watchers: 6
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
Awesome Lists containing this project
README
# RazorPay X Laravel Payment Gateway
[![Latest Version on Packagist](https://img.shields.io/packagist/v/optimoapps/razorpay-x.svg?style=flat-square)](https://packagist.org/packages/optimoapps/razorpay-x)
[![Total Downloads](https://img.shields.io/packagist/dt/optimoapps/razorpay-x.svg?style=flat-square)](https://packagist.org/packages/optimoapps/razorpay-x)
![run-tests](https://github.com/OptimoApps/razorpay-x/workflows/run-tests/badge.svg)
![Check & fix styling](https://github.com/OptimoApps/razorpay-x/workflows/Check%20&%20fix%20styling/badge.svg)
RazorPay X Laravel Package. Supports JsonMapper
RazorPay X Laravel requires PHP 7.4. Supports Laravel 6 , 7 & 8.
## InstallationYou can install the package via composer:
```bash
composer require optimoapps/razorpay-x
```## Usage
``` php
name = 'Gaurav Kumar';
$bankAccount->account_number = '765432123456789';
$bankAccount->ifsc = 'HDFC0000053';
$account = new Account();
$account->contact_id = 'cont_EyrHb3f1S0axBg';
$account->account_type = AccountTypeEnum::BANK_ACCOUNT;
$account->bank_account = $bankAccount;
RazorPayX::account()->create($account);
/* To Create a Payment */
$payment = new Payment();
$payment->account_number = '2323230002025787';
$payment->fund_account_id = 'fa_EzFCyMGCEwTgmS';
$payment->amount = 102;
$payment->currency = 'INR';
$payment->mode = PaymentModeEnum::IMPS;
$payment->purpose = 'payout';
RazorPayX::payment()->create($account);/* To fetch Account */
$account = new Account();
$account->account_type = AccountTypeEnum::BANK_ACCOUNT;
RazorPayX::account()->fetch($account);
/* result AccountCollection */OptimoApps\RazorPayX\Entity\AccountCollection {#7246
+entity: "collection"
+count: 3
+items: array:3 [
0 => OptimoApps\RazorPayX\Entity\Account {#8386
+id: "fa_F41TFrtuUZDim2"
+entity: "fund_account"
+contact_id: "cont_F0Rb5C4ZpfaTAV"
+account_type: "bank_account"
+bank_account: OptimoApps\RazorPayX\Entity\Bank {#9582
+name: "Gaurav Kumar"
+ifsc: "HDFC0000053"
+account_number: "765432123456789"
+bank_name: "HDFC Bank"
}
+vpa: null
+active: true
+batch_id: ""
+created_at: 1592469241
}
1 => OptimoApps\RazorPayX\Entity\Account {#8369
+id: "fa_F0RsxScNwK4C0t"
+entity: "fund_account"
+contact_id: "cont_F0Rb5C4ZpfaTAV"
+account_type: "bank_account"
+bank_account: OptimoApps\RazorPayX\Entity\Bank {#11794
+name: "sathish kumar"
+ifsc: "HDFC0000053"
+account_number: "765432123456789"
+bank_name: "HDFC Bank"
}
+vpa: null
+active: true
+batch_id: ""
+created_at: 1591688903
}
2 => OptimoApps\RazorPayX\Entity\Account {#9580
+id: "fa_EzFCyMGCEwTgmS"
+entity: "fund_account"
+contact_id: "cont_EyrHb3f1S0axBg"
+account_type: "bank_account"
+bank_account: OptimoApps\RazorPayX\Entity\Bank {#13996
+name: "Gaurav Kumar"
+ifsc: "HDFC0000053"
+account_number: "765432123456789"
+bank_name: "HDFC Bank"
}
+vpa: null
+active: true
+batch_id: ""
+created_at: 1591425919
}
]
}```
### Testing
``` bash
composer test
```### Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
### Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
## Credits
- [satz](https://github.com/optimoapps)
- [mani](https://github.com/optimoapps)
- [All Contributors](../../contributors)## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.