Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
handleApplePayPress = async () => {
try {
this.setState({
loading: true,
status: null,
token: null,
});
const token = await Stripe.paymentRequestWithApplePayAsync(
[
{
label: 'Whisky',
amount: '0.10',
},
{
label: 'Vine',
amount: '0.30',
},
{
label: 'Tipsi',
amount: '0.60',
},
],
{
//requiredBillingAddressFields: ['all'],