README.md in paypal-rest-api-0.3.1 vs README.md in paypal-rest-api-0.4.0

- old
+ new

@@ -1,5 +1,10 @@ +[![Gem Version](https://badge.fury.io/rb/paypal-rest-api.svg)](https://badge.fury.io/rb/paypal-rest-api) +[![GitHub Actions](https://github.com/aglushkov/paypal-rest-api/actions/workflows/main.yml/badge.svg?event=push)](https://github.com/aglushkov/paypal-rest-api/actions/workflows/main.yml) +[![Test Coverage](https://api.codeclimate.com/v1/badges/11efd530f1df171dac2b/test_coverage)](https://codeclimate.com/github/aglushkov/paypal-rest-api/test_coverage) +[![Maintainability](https://api.codeclimate.com/v1/badges/11efd530f1df171dac2b/maintainability)](https://codeclimate.com/github/aglushkov/paypal-rest-api/maintainability) + # PaypalAPI ## Installation ```bash @@ -128,11 +133,11 @@ Retries happen on any network error, on 409, 429, 5xx response status code. ```ruby client = PaypalAPI::Client.new( - retries: {count: 2, sleep: [0, 0]} + retries: {enabled: !Rails.env.test?, count: 5, sleep: [0, 0.25, 0.75, 1.5, 2]} # ... ) ``` ### Option `:http_opts` @@ -348,9 +353,21 @@ - `PaypalAPI::Orders.confirm` - `PaypalAPI::Orders.authorize` - `PaypalAPI::Orders.capture` - `PaypalAPI::Orders.track` - `PaypalAPI::Orders.update_tracker` + +### Payment Tokens + +- `PaypalAPI::PaymentTokens.create` +- `PaypalAPI::PaymentTokens.list` +- `PaypalAPI::PaymentTokens.show` +- `PaypalAPI::PaymentTokens.delete` + +<!-- --> + +- `PaypalAPI::SetupTokens.create` +- `PaypalAPI::SetupTokens.show` ### Payments - `PaypalAPI::AuthorizedPayments.show` - `PaypalAPI::AuthorizedPayments.capture`