#shivanim.
1 messages · Page 1 of 1 (latest)
Hi there!
Can you share the ID (req_xxx) of the failing API request?
https://support.stripe.com/questions/finding-the-id-for-an-api-request
req_ate2AYcFXpyWE9
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 ?
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
Can I invite you to run this sample react native sample app and try that same card :
https://github.com/stripe/stripe-react-native/tree/master/example
I have done all setup related applepay
applepay running in simulator too.
but facing issue while test in real device
Did you registred your merchant and generated a certif ?
https://stripe.com/docs/apple-pay?platform=react-native
yes ,I did
when i call confirmPlatformPayPayment
it returns
{"error": {"code": "Failed", "declineCode": null, "localizedMessage": "Payment not completed", "message": "Payment not completed", "stripeErrorCode": null, "type": null}}
are you located in India?
yes but I have checked with US client's devices too
not much more I can think of really
I'd suggest writing to https://support.stripe.com/?contact=true and sharing something like a complete minimal project folder that replicates the issue