(v1 update) cancelled
to be merged/deployed before this can be merged.
This PR adds the ability to use the Stripe\PaymentIntents API from the customer portal. This API handles all sensitive card details in their JavaScript integration and tokenizes the card, instead of using a standard form where we submit all card details to sonar. Customers may be prompted for additional authentication through their bank when submitting these forms, if deemed necessary by Stripe.
To use this, you must enable stripe in /settings/, and enter your publishable and private API keys.
This PR requires both
This PR adds the ability to use the
Stripe\PaymentIntents
API from the customer portal. This API handles all sensitive card details in their JavaScript integration and tokenizes the card, instead of using a standard form where we submit all card details tosonar
. Customers may be prompted for additional authentication through their bank when submitting these forms, if deemed necessary by Stripe.To use this, you must enable stripe in
/settings/
, and enter your publishable and private API keys.It looks like this:
![stripe3](https://user-images.githubusercontent.com/9061227/103100024-fa025080-45cd-11eb-97c7-2f582c139805.png)
The following changes have been made:
stripe/stripe-php
sonarsoftware/customer_portal_framework
->sonarsoftwareinc/customer_portal_framework
/settings
configurationstripe_enabled
booleanstripe_public_api_key
stringstripe_private_api_key
stringstripe_enabled
is truestripe_enabled
is trueconvertExpirationDateToYearAndMonth