#sevak-terminal-reactnative
1 messages · Page 1 of 1 (latest)
Hello sevak36, we'll be with you shortly! Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
• sevak36, 1 hour ago, 3 messages
Hello! codename_duchess had to head out, but I can take a look
Here is my question: I am using stripe terminal sdk for react native and using it with bluttoth and touch to pay readers. How do I know last 4 digit of card scanned and also cardtype like visa,mastercard etc?
And in response one of the stripe support asked for sample payment id
Gotcha - You should be able to get the last 4 by retrieving the PaymentMethod used with the payment and checking card_present.last4 (https://stripe.com/docs/api/payment_methods/object#payment_method_object-card_present-last4)
For the card type you'd check card_present.brand (https://stripe.com/docs/api/payment_methods/object#payment_method_object-card_present-brand)
Any existing hooks in stripeTerminal hook for react native responds with paymentmethod object? I am using processPayment, collectPayment, retrivePaymentIntent from useStripeTerminal hook for react native? Or I need to use something else
You'd have two options:
- Call out to your server to retrieve the PaymentMethod
- Use the beta
updatePaymentIntentoption that would allow you to "inspect" the payment method after it's been collected on the card reader
Ok o willl try that
If you plan on using the beta you have to use the beta version of the library (https://github.com/stripe/stripe-terminal-react-native/releases/tag/v0.0.1-beta.13)