#Kade

1 messages · Page 1 of 1 (latest)

hazy gazelleBOT
candid lily
#

Hi there, how can I help?

lyric surge
#

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?

candid lily
#

Are you using CheckoutSessions or PaymentIntents API?

lyric surge
#

var service = new PaymentIntentService();
var paymentIntent = service.Get(paymentId);
Information about PaymentID is being obtained with the above value.

candid lily
#

OK, so you are using PaymentIntents API

lyric surge
#

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?

candid lily
#

Do you have problem processing payments?

lyric surge
#

Payment, cancellation, and refund are normal.

candid lily
#

OK. can you share with me a screenshot of the Diagnostic page?

lyric surge
candid lily
#

Can you copy and paste the Serial number here?

lyric surge
#

WSC513142089657

candid lily
#

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

lyric surge
#

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?

candid lily
#

It looks like a connectivity problem to me

lyric surge
#

Oh. Then, should terminal events connectivity solve the Wi-Fi problem?

hazy gazelleBOT
silent yew
#

What terminal events connectivity are you referring to?

lyric surge
#

I asked because I was wondering if it was a problem because WisePos_E's diagnostics showed Terminal events connectivity as Pending...

silent yew
#

It's likely due to connection problem that results the terminal events connectivity as pending

lyric surge
#

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("결제가 성공했습니다!");
// 추가로 필요한 로직을 작성하세요.
}

candid lily
#

Hi @lyric surge can you share with me the ID of PaymentIntent where you encountered error?

lyric surge
#

pi_3NaYECLOsQno84zQ0IgdOmHR

#

this is payment id

candid lily
#

OK I know the problem

#

this is a terminal payment, so the payment_method_type is card_present, not card.

lyric surge
#

oh Thank you very much!
i will find and i check use

#

Thank you very much again!