This repository has been archived by the owner on Mar 27, 2021. It is now read-only.
v6.1.0
New Features
Added the auBankAccount
and fpxBank
elements. These elements will not have automatic Element detection/insertion. To use them you will need to use elements.getElement
and pass them directly to other Stripe.js methods (e.g. stripe.confirmFpxPayment
):
const FpxForm = injectStripe(({stripe, elements}) => {
const handleSubmit = async (event) => {
event.preventDefault();
const {error} = await stripe.confirmFpxPayment('{{CLIENT_SECRET}}', {
payment_method: {
fpx: elements.getElement('fpxBank'),
},
});
}
return (
<form onSubmit={handleSubmit}>
<FpxBankElement accountHolderType="individual" />
<button>Pay</button>
</form>
);
});