Not able to make payment to apple using test cards.

Im trying to do the payment using authorize.net through react native framework. I have registered the merchant ID in application and replaced merchant identifier in below code. Below i have posted my code that I'm trying to do the payment and I'm using the cards that are provided in this link. I can able to add one card and at the end step its trying for payment and its failing.Please help me out .Thanks.

  {
    supportedMethods: ['apple-pay'],
    data: {
      merchantIdentifier: 'merchantID',
      supportedNetworks: ['visa', 'mastercard', 'amex'],
      countryCode: 'US',
      currencyCode: 'USD',
    },
  },
];

const DETAILS = {
  id: 'basic-example',
  displayItems: [
    {
      label: 'Movie Ticket',
      amount: {currency: 'USD', value: '15.00'},
    },
    {
      label: 'Grocery',
      amount: {currency: 'USD', value: '5.00'},
    },
  ],
  shippingOptions: [
    {
      id: 'economy',
      label: 'Economy Shipping',
      amount: {currency: 'USD', value: '0.00'},
      detail: 'Arrives in 3-5 days', // `detail` is specific to React Native Payments
    },
  ],
  total: {
    label: 'Enappd Store',
    amount: {currency: 'USD', value: '20.00'},
  },
};
const OPTIONS = {
  requestPayerName: true,
  requestPayerPhone: true,
  requestPayerEmail: true,
  requestShipping: true,
};

const paymentRequest = new PaymentRequest(METHOD_DATA, DETAILS, OPTIONS);

paymentRequest.addEventListener('shippingaddresschange', e => {
  const updatedDetails = getUpdatedDetailsForShippingAddress(
    paymentRequest.shippingAddress,
  );

  e.updateWith(updatedDetails);
});

paymentRequest.addEventListener('shippingoptionchange', e => {
  const updatedDetails = getUpdatedDetailsForShippingOption(
    paymentRequest.shippingOption,
  );

  e.updateWith(updatedDetails);
});

check = () => {
  paymentRequest.canMakePayments().then(canMakePayment => {
    if (canMakePayment) {
      Alert.alert('Apple Pay', 'Apple Pay is available in this device');
    }
  });
};

pay = () => {
  paymentRequest.canMakePayments().then(canMakePayment => {
    if (canMakePayment) {
      console.log('Can Make Payment');
      paymentRequest.show().then(paymentResponse => {
        // Your payment processing code goes here

        paymentResponse.complete('success');
      });
    } else {
      console.log('Cant Make Payment');
    }
  });
};

Hi @Abhiramareddy,

Please see the following resources to help with your troubleshooting of your merchant validation and/or payment processing:

If the information above does not help to resolve your issues, please do not hesitate to reach out.

Cheers,

Paris

Not able to make payment to apple using test cards.
 
 
Q