diff --git a/docs/api.md b/docs/api.md index af0ca26eb163df04b2f8adee7c092eb787dde480..9e9a85e115d9de1da34cae0a1d50e1d67c645452 100644 --- a/docs/api.md +++ b/docs/api.md @@ -48,6 +48,13 @@ It's not advised that you use this API for anything else. This API is used by the client javascript integration and by third-party frontend integrations. Please contact [MJW Consulting](https://mjw.pt/stripe) if you require more information or are planning to use this API. +Permissions: `access Ajax API` + `make online contributions` + +#### `StripePaymentintents.createorupdate` +This API is used by the client javascript integration to create or update the `civicrm_stripe_paymentintent` table. + +Permissions: `access Ajax API` + `make online contributions` + ## Scheduled Jobs * `Job.process_stripe` - this cancels uncaptured paymentIntents and removes successful ones from the local database cache after a period of time: diff --git a/docs/index.md b/docs/index.md index f6749e020bf7e6556a73e2ebd1580b6df9dcd7d0..a82cf8a4237131219588bd727a6bf6dd68a61f01 100644 --- a/docs/index.md +++ b/docs/index.md @@ -23,7 +23,7 @@ View/Download this extension in the [Extension Directory](https://civicrm.org/ex #### Required extensions -* [MJWShared extension](https://civicrm.org/extensions/mjwshared) version 0.9.4. +* [MJWShared extension](https://civicrm.org/extensions/mjwshared) version 0.9.10. * [SweetAlert extension](https://civicrm.org/extensions/sweetalert) version 1.4+. #### Recommended extensions diff --git a/docs/install.md b/docs/install.md index e8ed1d0fd53af753e0307ca4a737fb14d18ed698..320b6c7d28e9fd5b5af2e7438af99c6f1e5670f0 100644 --- a/docs/install.md +++ b/docs/install.md @@ -18,6 +18,14 @@ Add a payment processor and enter your *Publishable* and *Secret* keys given by The extension will show up in the extensions browser for automated installation. Otherwise, download and install as you would for any other CiviCRM extension. +## Permissions + +To accept payments the user must have the following permissions as a minimum: +* `access Ajax API` +* `make online contributions` + +This applies to both unauthenticated (anonymous) and authenticated users. + ### How to update Stripe API version More info on how to change: [Stripe: Upgrading your API version](https://stripe.com/docs/upgrades#how-can-i-upgrade-my-api). diff --git a/docs/releasenotes.md b/docs/releasenotes.md index 621ec18fc0e07f2067edeb6291be6943ea856af0..ba8637176821ceaf553a0c8e6df5db2e3de96108 100644 --- a/docs/releasenotes.md +++ b/docs/releasenotes.md @@ -10,9 +10,14 @@ Releases use the following numbering system: * **[BC]**: Items marked with [BC] indicate a breaking change that will require updates to your code if you are using that code in your extension. ## Release 6.6 (not yet released 2021-02-20) +**Requires mjwshared (Payment Shared) 1.0** * Support for [Payment Request Button](https://stripe.com/docs/stripe-js/elements/payment-request-button) which provides Google Pay and Apple Pay support. - * To enable, you must set the "Country" in Stripe Settings and then the payment request button will replace the card element when the client browser supports it. + * To enable, you must set the "Country" in Stripe Settings and then the payment request button will replace the card element when the client browser supports it. +* Collect billing name/email when possible and store in `civicrm_stripe_paymentintent.extra_data` table. This should help trace the donor when a payment does not complete. +* Handle 3d-secure authentication on thankyou page for "setupIntents". This will happen when a delayed recurring contribution is created and the card issuer requests additional authentication. +* Remove AJAX endpoint `civicrm/stripe/confirm-payment` and replace with `StripePaymentintent.Process` API call. +* Add `StripePaymentintent.createorupdate` API which is used by the frontend javascript and requires "make online contributions" permission. ## Release 6.5.8