#Kade
1 messages · Page 1 of 1 (latest)
Hi there, how can I help?
After successful payment, I would like to save the payment information (price, 4 digits on the back of the card).
Is there a way to get the number for the last 4 digits of the card after searching for PaymentID after successful payment?
I found a variable called last4 in PaymentDetail, is there a way to get this value?
Are you using CheckoutSessions or PaymentIntents API?
var service = new PaymentIntentService();
var paymentIntent = service.Get(paymentId);
Information about PaymentID is being obtained with the above value.
OK, so you are using PaymentIntents API
You can retrieve the PaymentMethod that associated with this PaymentIntents, and get the last4 from here https://stripe.com/docs/api/payment_methods/object#payment_method_object-card-last4
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I have one more question.
In WisePos_E, Terminal events connectivity appears in the Diagnostic option as Current Pending.
Is this normal?
If it's not normal, how do I solve it?
Do you have problem processing payments?
Payment, cancellation, and refund are normal.
OK. can you share with me a screenshot of the Diagnostic page?
Can you copy and paste the Serial number here?
WSC513142089657
I do see some timeout connection errors in the log.
I'd suggest yout check you network and make sure that you have a stable internet connectivity
Currently, our reader is connected to Wi-Fi.
The problem seems to be the Wi-Fi that I am currently testing.
When I do a payment test, the Api timeout pops up once in a while, is that also a Wi-Fi problem?
It looks like a connectivity problem to me
Oh. Then, should terminal events connectivity solve the Wi-Fi problem?
What terminal events connectivity are you referring to?
I asked because I was wondering if it was a problem because WisePos_E's diagnostics showed Terminal events connectivity as Pending...
It's likely due to connection problem that results the terminal events connectivity as pending
ahh i see.
As I asked you earlier
I just got an error from getting my card number, is there anything wrong with getting the payment details?
Below is the code.
var service = new PaymentIntentService();
var paymentIntent = service.Get(paymentId);
// 결제가 성공했는지 확인
if (paymentIntent.Status == "succeeded")
{
string cardlast4 = paymentIntent.PaymentMethod.Card.Last4;
// 결제 성공 처리 로직
MessageBox.Show("결제가 성공했습니다!");
// 추가로 필요한 로직을 작성하세요.
}
Hi @lyric surge can you share with me the ID of PaymentIntent where you encountered error?
OK I know the problem
this is a terminal payment, so the payment_method_type is card_present, not card.
You should find the last4 here https://stripe.com/docs/api/payment_methods/object#payment_method_object-card_present-last4
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.