Something went wrong on our end. Please try again.
Created by: renovate[bot]
This PR contains the following updates:
Package | Type | Update | New value | References | Sourcegraph |
---|---|---|---|---|---|
react-stripe-elements | dependencies | major | ^3.0.0 | source |
v3.0.0
added a changelog
added support for stripe.handleCardPayment
and stripe.createPaymentMethod
.
These methods allow you to easily integrate Stripe's new Payment Intents API.
Like createToken
and createSource
, these new methods will automatically
find and use a corresponding Element when they are called.
stripe.createPaymentMethod(
paymentMethodType: string,
paymentMethodDetails: Object
): Promise<{error?: Object, paymentIntent?: Object}>
stripe.handleCardPayment(
clientSecret: string,
paymentMethodDetails: Object
): Promise<{error?: Object, paymentIntent?: Object}>
For more information, please review the Stripe Docs:
handleCardPayment
or createPaymentMethod
with
react-stripe-elements
, you should upgrade your integration. These methods
will now automatically find and use valid Elements.<CardElement
...
onReady={this.handleReady}
/>
handleReady = (element) => {
this.setState({cardElement: element}) ;
};
let { paymentIntent, error } = await this.props.stripe.handleCardPayment(
intent.client_secret, this.state.cardElement, {}
);
<CardElement />;
let {paymentIntent, error} = await this.props.stripe.handleCardPayment(
intent.client_secret,
{}
);
const stripe = window.Stripe(
publicKey,
{betas: ['payment_intent_beta_3']},
);
<StripeProvider stripe={stripe}>
<YourCheckoutComponent>
</StripeProvider>
<StripeProvider apiKey={publicKey}>
<YourCheckoutComponent>
</StripeProvider>
PostalCodeElement
has been removed. We suggest that you build your own
postal code input.rebase!
".
This PR has been generated by Renovate Bot. View repository job log here.