when I try to use Credit Card (via Stripe) on my PWA I get error „No credit card selected.“. Maybe someone know how and what exactly fields I must send to body. My request here:
fetch(‚http://localhost/store-api/handle-payment‘, {
method: ‚POST‘,
headers: {
Accept: ‚application/json‘,
‚Content-Type‘: ‚application/json‘,
‚sw-access-key‘: process.env.NEXT_PUBLIC_SHOPWARE_ACCESS_TOKEN,
‚sw-context-token‘: ‚HyfplMxXgtFt7ZtH7Iw7CZrXK5a8frKI‘,
},
body: JSON.stringify({
orderId: ‚29244162ef5d4a7a9cf621f2cd143b4d‘,
paymentDetails: {
cardNumber: ‚42424242442424242424242422424242‘,
cvc: ‚777‘,
exp_month: ‚07‘,
exp_year: ‚23‘,
},
}),
})