#jaisandhu-payment-capture
1 messages · Page 1 of 1 (latest)
jaisandhu-payment-capture
const onSubmit = async e => {
e?.preventDefault();
setIsLoading(true);
await swell.payment.tokenize({
card: {
onError: (err) => {
// inform the customer there was an error
console.log(err);
},
onSuccess: async() => {
//finally submit the form
const order = await swell.cart.submitOrder();
}
}
});
setIsLoading(false);
};
hey @warm cypress. We capture payments by default. If it doesn't happen it's because something is configured differently with your third-party. We don't know anything about Swell, so we can't really help with this. I'd recommend talking to Swell's support team directly for help