diff --git a/package.json b/package.json index 943782d1..e31ddf84 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "openstack-uicore-foundation", - "version": "5.0.8", + "version": "5.0.9-beta.1", "description": "ui reactjs components for openstack marketing site", "main": "lib/openstack-uicore-foundation.js", "scripts": { diff --git a/src/components/mui/StripePayment/index.jsx b/src/components/mui/StripePayment/index.jsx index af7235af..0b39fee0 100644 --- a/src/components/mui/StripePayment/index.jsx +++ b/src/components/mui/StripePayment/index.jsx @@ -21,6 +21,7 @@ const StripePayment = ({ paymentProfile, client, redirectUrl, + paymentOptions, stripeFormTitle, onPaymentSuccess, onPaymentError, @@ -47,6 +48,7 @@ const StripePayment = ({ client={client} amount={paymentIntent.total_amount} redirectUrl={redirectUrl} + paymentOptions={paymentOptions} onSuccess={onPaymentSuccess} onError={onPaymentError} onPaymentMethodChange={updatePaymentIntent} diff --git a/src/components/mui/StripePayment/stripe-form.jsx b/src/components/mui/StripePayment/stripe-form.jsx index 63bc06ed..2c81fdce 100644 --- a/src/components/mui/StripePayment/stripe-form.jsx +++ b/src/components/mui/StripePayment/stripe-form.jsx @@ -37,6 +37,7 @@ const StripeForm = ({ amount = 0, client, redirectUrl, + paymentOptions = {}, onSuccess, onError, onPaymentMethodChange @@ -75,7 +76,7 @@ const StripeForm = ({ return_url: `${window.location.origin}${redirectUrl}`, payment_method_data: { billing_details: { - name: `${client.first_name} ${client.last_name}`, + name: client.full_name || `${client.first_name} ${client.last_name}`, email: client.email, ...buildAddress(client.address) } @@ -114,7 +115,8 @@ const StripeForm = ({