2020-10-08 20:03:07 -03:00
# WooCommerce PayPal Payments
2020-03-19 16:47:08 +01:00
2020-10-08 07:36:52 +03:00
PayPal's latest complete payments processing solution. Accept PayPal, PayPal Credit, credit/debit cards, alternative digital wallets local payment types and bank accounts. Turn on only PayPal options or process a full suite of payment methods. Enable global transaction with extensive currency and country coverage.
2020-03-19 16:47:08 +01:00
2020-10-08 07:36:52 +03:00
## Requirements
2020-03-19 16:47:08 +01:00
2020-10-08 07:36:52 +03:00
* PHP >= 7.0
* WordPress >=5.3
* WooCommerce >=4.5
2020-03-19 16:47:08 +01:00
2020-10-08 07:36:52 +03:00
## Development
2020-03-19 16:47:08 +01:00
2020-09-03 07:07:16 +03:00
1. Clone repository
2020-10-08 20:03:07 -03:00
2. `$ cd woocommerce-paypal-payments`
2020-09-03 07:07:16 +03:00
3. `$ composer install`
2020-11-05 13:24:14 -03:00
4. `$ yarn run build:dev`
2020-10-08 07:36:52 +03:00
5. Change the `PAYPAL_INTEGRATION_DATE` constant to `gmdate( 'Y-m-d' )` to run the latest PayPal JavaScript SDK
2020-03-19 16:47:08 +01:00
2020-10-08 07:36:52 +03:00
Note: PHPUnit needs at least PHP 7.3.
2020-03-19 16:47:08 +01:00
2020-10-08 07:36:52 +03:00
### Unit tests and code style
2020-03-19 16:47:08 +01:00
2020-10-08 07:36:52 +03:00
1. `$ composer install`
2. `$ ./vendor/bin/phpunit`
2020-10-08 20:03:07 -03:00
3. `$ ./vendor/bin/phpcs src modules woocommerce-paypal-payments.php --extensions=php`
2020-03-19 16:47:08 +01:00
2020-10-08 07:36:52 +03:00
## Preparation for wordpress.org release
2020-03-19 16:47:08 +01:00
2020-10-08 07:36:52 +03:00
If you want to deploy a new version, you need to do some preparation:
### Clone
Clone the repository and `cd` into it
### Build
2020-11-05 13:24:14 -03:00
The following command should get you a ZIP file ready to be used on a WordPress site.
2020-10-08 07:36:52 +03:00
```
2020-11-05 13:24:14 -03:00
npm run build
2020-10-08 07:36:52 +03:00
```
2020-03-19 16:47:08 +01:00
2020-10-08 07:36:52 +03:00
### Update version
Make sure you have the version in the plugin root file updated.
### Fixate integration date
Fix the PayPal JavaScript SDK integration date by using the current date for the `PAYPAL_INTEGRATION_DATE` constant.
## License
2020-03-19 16:47:08 +01:00
2020-10-08 07:36:52 +03:00
[GPL-2.0 License ](LICENSE )
2020-03-19 16:47:08 +01:00
## Contributing
2020-10-08 20:03:07 -03:00
All feedback / bug reports / pull requests are welcome.