#amann5952
1 messages · Page 1 of 1 (latest)
Can you share the PaymentIntent you're using for this?
sure
this is body:
{"amount": 5, "payment_method_type": "tap2pay", "tip_amount": "0.00", "tip_percentage": 0, "tip_type": "percentage"}
let i = await createPaymentIntentFunction(token, body);
got this response:
response {"data": "pi_3NriqfLPZ4cBwdX81xko1Wha_secret_f4sndT14WfPVtwQva6JFlf6F0", "message": "Success", "status": 200}
Then this:
const { paymentIntent, error } = await retrievePaymentIntent(clientSecret);
if (error) {
// Placeholder for handling exception
console.log("ERROR", error);
setPaymentState({ status: "failed", paymentIntentId: paymentIntent.id }); // Add this line
return;
}
ERROR {"code": "NotConnectedToReader", "message": "No reader is connected. Connect to a reader before trying again."}
let me know what else you need
and this is response:
{
"id": "pi_3NrirkLPZ4cBwdX80qWpk47n",
"object": "payment_intent",
"amount": 100,
"amount_capturable": 0,
"amount_details": {
"tip": {
}
},
"amount_received": 0,
"application": null,
"application_fee_amount": 8,
"automatic_payment_methods": null,
"canceled_at": null,
"cancellation_reason": null,
"capture_method": "manual",
"client_secret": "pi_3N*************************************************53ji",
"confirmation_method": "automatic",
"created": 1695048960,
"currency": "usd",
"customer": null,
"description": null,
"invoice": null,
"last_payment_error": null,
"latest_charge": null,
"livemode": false,
"next_action": null,
"on_behalf_of": "acct_1NriKOQ9l0S5iWeK",
"payment_method": null,
"payment_method_options": {
"card_present": {
"request_extended_authorization": false,
"request_incremental_authorization_support": false
}
},
"payment_method_types": [
"card_present"
],
"processing": null,
"receipt_email": null,
"review": null,
"setup_future_usage": null,
"shipping": null,
"source": null,
"statement_descriptor": null,
"statement_descriptor_suffix": null,
"status": "requires_payment_method",
"transfer_data": {
"destination": "acct_1NriKOQ9l0S5iWeK"
},
"transfer_group": "acct_1NriKOQ9l0S5iWeK"
}
Can you share the code you're using for reader discovery and connection?
The error you're seeing is typically returned when you're connected to a reader that doesnt' support Tap to Pay (as in not the localreader on your iphone)
To discover:
const { error } = await discoverReaders({
discoveryMethod: "localMobile",
});
To connect:
const { reader, error } = await connectLocalMobileReader({
reader: selectedReader,
locationId: locationId,
});
Are you seeing any errors in your logs?
aside from {"error": {"code": "FeatureNotAvailableWithConnectedReader", "message": "This feature is currently not available for the selected reader."}, "paymentIntent": undefined}
no other error log
let me share connection logs
Discovered Tap2Pay - TapToPay - 1
{"selectedDevice": "localMobile"}
Selected Reader {"availableUpdate": null, "batteryLevel": null, "batteryStatus": "unknown", "deviceSoftwareVersion": null, "deviceType": "appleBuiltIn", "id": null, "ipAddress": null, "isCharging": null, "label": "Apple Built-In (…c217)", "location": {"address": {"city": "Schoenview", "country": "US", "line1": "681 Pacocha Club Suite 737", "line2": "", "postalCode": "99950", "state": "Minnesota"}, "displayName": "USA Company", "id": "tml_FQUgbQnSswvzjx", "livemode": false}, "locationId": "tml_FQUgbQnSswvzjx", "locationStatus": "set", "serialNumber": "a795ccffeaa9eb31e59cb6757e670c9d61a05a9b55ff8d0deeaae88bfa0fc217", "simulated": false, "status": "offline"}
[Stripe terminal]: didChangeConnectionStatus connecting
LOG [Stripe terminal]: didChangeConnectionStatus connected
LOG [Stripe terminal]: didChangePaymentStatus ready
LOG handleDiscoverReaders Response
Status of payment {"paymentIntentId": null, "status": "initial"}
LOG {"amount": 2, "token": "TOKEN_HERE"}
LOG body {"amount": 2, "payment_method_type": "tap2pay", "tip_amount": "0.00", "tip_percentage": 0, "tip_type": "percentage"}
LOG Status of payment {"paymentIntentId": null, "status": "processing"}
LOG Secret {"data": "pi_3Nrj5OLPZ4cBwdX80Z5yVHiO_secret_Jn0YhIQBXLdFyI1z1Hmh2HShK", "message": "Success", "status": 200}
LOG response {"data": "pi_3Nrj5OLPZ4cBwdX80Z5yVHiO_secret_Jn0YhIQBXLdFyI1z1Hmh2HShK", "message": "Success", "status": 200}
LOG [Stripe terminal]: didChangePaymentStatus notReady
LOG [Stripe terminal]: didChangePaymentStatus ready
LOG Error collecting payment: {"error": {"code": "FeatureNotAvailableWithConnectedReader", "message": "This feature is currently not available for the selected reader."}, "paymentIntent": undefined}
LOG Status of payment {"paymentIntentId": "pi_3Nrj5OLPZ4cBwdX80Z5yVHiO", "status": "failed"}
@uncut jewel
anything else you need?
What iOS version are you on?
16.6.61
did you mean 16.6 ? I don't know if there's a 16.6.61
16.6.1
Yeah I've exhausted all the options I could think of, not sure why this is happening. I'd recommend writing in via our support team so that they can put you in touch with the right team who can investigate further
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.