Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/juzaweb/payment-method
https://github.com/juzaweb/payment-method
Last synced: 17 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/juzaweb/payment-method
- Owner: juzaweb
- Created: 2023-03-17T14:49:27.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-04-30T10:57:40.000Z (7 months ago)
- Last Synced: 2024-07-02T14:02:25.375Z (4 months ago)
- Language: PHP
- Size: 40 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
Awesome Lists containing this project
README
## Features
- [x] Paypal Payment support
- [ ] Stripe Payment support## Development
### Add a payment method
- Create class implement PaymentMethodInterface
```php
addAction(Action::INIT_ACTION, [$this, 'paymentMethodInit']);
}public function paymentMethodInit(): void
{
app()->make(PaymentMethodManager::class)->register(
'paypal',
Paypal::class
);
}
```