Merx

GET shop/stripe-client-secret

Creates a Stripe payment intent for the current cart and returns its client secret.

fetch('/api/shop/stripe-client-secret', {
	method: 'GET',
});

Return type

array

Array with the clientSecret of the cart’s Stripe PaymentIntent.