Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/juzaweb/payment-method


https://github.com/juzaweb/payment-method

Last synced: 17 days ago
JSON representation

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
);
}
```