const response = await fetch('https://pci-vault-hrhwdgc4akhse3bs.eastus-01.azurewebsites.net/proxy/transaction', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': 'YOUR_API_KEY'
},
body: JSON.stringify({
token: 'tok_abc123',
cvc_session_id: 'session_xyz',
proxy_url: 'https://api.stripe.com/v1/charges',
request_data: {
amount: 2000,
currency: 'usd',
source: {
object: 'card',
number: '${cardNumber}',
exp_month: '${expirationMonth}',
exp_year: '${expirationYear}',
cvc: '${cvv}'
}
},
http_headers: {
'Authorization': 'Bearer sk_test_xxx'
}
})
});