#shivanim.

1 messages · Page 1 of 1 (latest)

spiral sapphireBOT
tardy sedge
devout depot
#

req_ate2AYcFXpyWE9

tardy sedge
#

This request is for creating the PaymentIntent

#

I can't find any payment attempt for this.

#

How are you confirming the payment ? what card are yo using ?

devout depot
#

I am using visa platinum real credit card

#

`initStripe({
publishableKey: URL_FINAL.STRIPE_PUBLISHABLE_KEY,
merchantIdentifier: URL_FINAL.STRIPE_MERCHANT_IDENTIFIER,
});

const support = await isPlatformPaySupported();
console.log('isPlatformPaySupported', support);

const {paymentMethod, error} = await presentApplePay({
  currency: 'usd',
  country: 'US',
  cartItems: [
    {paymentType: 'Immediate', label: 'applePayLabel', amount: '1'},
  ],
});
console.log(paymentMethod, 'paymentMethodpaymentMethod');

console.log(error, 'paymentMethoderrorerror');
const clientSecret = this.state.clientSecret;
confirmPlatformPayPayment(clientSecret, {
  applePay: {
    cartItems: [
      {
        label: 'Total',
        amount: '200',
        paymentType: PlatformPay.PaymentType.Immediate,
      },
    ],
    merchantCountryCode: 'US',
    currencyCode: 'USD',
  },
})
  .then(res => {
    console.log(res, 'PAYYERER');
  })
  .catch(e => {
    console.log(e, 'CACHE');
  });`
#

this is my code

tardy sedge
devout depot
#

I have done all setup related applepay

#

applepay running in simulator too.
but facing issue while test in real device

tardy sedge
devout depot
#

yes ,I did

tardy sedge
#

Did Apple review your App?

#

You got a decline from them ?

devout depot
#

when i call confirmPlatformPayPayment

it returns

{"error": {"code": "Failed", "declineCode": null, "localizedMessage": "Payment not completed", "message": "Payment not completed", "stripeErrorCode": null, "type": null}}

spiral sapphireBOT
open prawn
#

are you located in India?

devout depot
#

yes but I have checked with US client's devices too

open prawn
#

not much more I can think of really