#Lucas974
1 messages · Page 1 of 1 (latest)
That is not currently available but is in development
It is not generally available. I would ask the person who told you it was available how they got access to it in that case.
My apologies, a colleague just pointed out this feature IS already GA'd. You can enable it here: https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-invoice_creation
You can read about it here: https://stripe.com/docs/payments/checkout/post-payment-invoices
I already use stripe-js checkout, does this mean in my file :
import { loadStripe } from '@stripe/stripe-js';
export default function handlePayment(event){
...
const stripeLoadedPromise = loadStripe(import.meta.env.VITE_STRIPE_API_KEY);
stripeLoadedPromise.then(stripe => {
stripe.redirectToCheckout({
lineItems:[{
price: import.meta.env.VITE_STRIPE_PRODUCT_ID,
quantity: 1
}],
mode: "payment",
successUrl: `${url}`,
cancelUrl: `${import.meta.env.VITE_URL_ROOT}/`,
billingAddressCollection: 'required',
})
.then(response => {
console.log(response.error);
})
.catch(error => {
console.log(error);
});
});
}
I just need to add invoice_creation.enabled to true
??
That appears to be the case. I haven't tested it yet but will soon