#Kade

1 messages ยท Page 1 of 1 (latest)

rich graniteBOT
modest bison
#

๐Ÿ‘‹ How can I help?

zinc jewel
#

We are currently testing the actual payment with the Stirpe Pos_E model.
There is a shape where you can tag on the top, can I pay with Samsung Pay here?

modest bison
zinc jewel
#

Ah . I see.
If so, when I pay with my card, the card decline appears on the device, but there is no change like payment failure on the Dashboard's payment, and it keeps saying incomplete.
Stripepos E has changed to a home screen, so how do I get the price for cancellation or rejection of this payment?

modest bison
#

Which integration type are you using? SDK or server-driven integration?

zinc jewel
#

I use server-driven integration

modest bison
#

Can you share an example payment intent ID (pi_xxx) that the reader showed payment failure whereas the PI still remains incomplete?

zinc jewel
#

pi_3NZlWvLOsQno84zQ0J1UOnml

#

this payment still incomplete

#

when i try that payment,
reader show Card Decline

modest bison
#

That's why the payment is incomplete as the payment is failed. Customer has to pay with another payment method

zinc jewel
#

I wrote down the code for the success and failure of the payment as follows.
When the card fails as shown above,
Some card_error value will come to a null value.
Should I receive the payment failure value as below in a different way?

            // PaymentIntent ์กฐํšŒ
            var service = new PaymentIntentService();
            var paymentIntent = service.Get(paymentId);

            // ๊ฒฐ์ œ๊ฐ€ ์„ฑ๊ณตํ–ˆ๋Š”์ง€ ํ™•์ธ
            if (paymentIntent.Status == "succeeded")
            {
                // ๊ฒฐ์ œ ์„ฑ๊ณต ์ฒ˜๋ฆฌ ๋กœ์ง
                MessageBox.Show("๊ฒฐ์ œ๊ฐ€ ์„ฑ๊ณตํ–ˆ์Šต๋‹ˆ๋‹ค!");
                // ์ถ”๊ฐ€๋กœ ํ•„์š”ํ•œ ๋กœ์ง์„ ์ž‘์„ฑํ•˜์„ธ์š”.
            }
            else if (paymentIntent.Status == "canceled")
            {
                MessageBox.Show("๊ฒฐ์ œ๊ฐ€ ์ทจ์†Œ๋˜์—ˆ์Šต๋‹ˆ๋‹ค!");
            }

            if (paymentIntent.LastPaymentError != null)
            {
                if (paymentIntent.LastPaymentError.Type == "card_error")
                {
                    if (paymentIntent.LastPaymentError.Code == "blocked")
                    {
                        MessageBox.Show("์˜์‹ฌ๋˜๋Š” ์‚ฌ๊ธฐ๋กœ ์ธํ•ด ๊ฒฐ์ œ๊ฐ€ ์ฐจ๋‹จ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.");
                    }
                    else if (paymentIntent.LastPaymentError.Code == "card_declined")
                    {
                        MessageBox.Show("์นด๋“œ ๋ฐœ๊ธ‰์‚ฌ์— ์˜ํ•ด ๊ฑฐ์ ˆ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.");
                    }
                    else if (paymentIntent.LastPaymentError.Code == "expired_card")
                    {
                        MessageBox.Show("์นด๋“œ์˜ ์œ ํšจ๊ธฐ๊ฐ„์ด ๋งŒ๋ฃŒ๋˜์—ˆ์Šต๋‹ˆ๋‹ค.");
                    }
                    else
                    {
                        MessageBox.Show("๊ธฐํƒ€ ์นด๋“œ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ–ˆ์Šต๋‹ˆ๋‹ค.");
                    }
                }
            }
modest bison
zinc jewel
#

Of course!

#

The code below is the code I make the payment for.
When I do the following, can you tell me why Samsung Pay is not working on the tagger?

#

StripeConfiguration.ApiKey = ""; // TestApi

        var options = new PaymentIntentCreateOptions
        {
            Currency = "CAD",
            PaymentMethodTypes = new List<string> { "card_present" },
            CaptureMethod = "manual",
            Amount = 1000,
        };
        var service = new PaymentIntentService();
        var paymentIntent = service.Create(options);

        // PaymentIntent์—์„œ Payment ID ๊ฐ€์ ธ์˜ค๊ธฐ
        paymentId = paymentIntent.Id;

        var options2 = new ReaderProcessPaymentIntentOptions { PaymentIntent = paymentId };

        /*var service2 = new Stripe.TestHelpers.Terminal.ReaderService();
        service2.PresentPaymentMethod("tmr_FL2VwvRQoOaU8M");*/

        var service2 = new ReaderService();
        service2.ProcessPaymentIntent("tmr_xxx", options2);
modest bison
#

Did you perform samsung pay in pi_3NZlWvLOsQno84zQ0J1UOnml?

zinc jewel
#

i did samsung pay in pi_3NZlvFLOsQno84zQ078QQd2t

#

this happen card declined

modest bison
#

It's not about Samsung Pay, but the card issuer declined the payment with above error

zinc jewel
#

At first, I set the capture mode to automatic, so Samsung Pay was not working.
After that, when I tested it after changing to manual, card declined occurred.

modest bison
#

At first, I set the capture mode to automatic, so Samsung Pay was not working.
Do you have an example payment intent?

zinc jewel
#

But 3 hours ago, I successfully paid at the convenience store with the above Samsung Pay.

modest bison
#

After that, when I tested it after changing to manual, card declined occurred.
The decline was from the card issuer. Stripe has no control over why the card issuer declined the payment

zinc jewel
#

var options = new PaymentIntentCreateOptions
{
Currency = "CAD",
PaymentMethodTypes = new List<string> { "card_present" },
CaptureMethod = "manual",
Amount = 1000,
};
this is payment intent.
is this right?

modest bison
#

But 3 hours ago, I successfully paid at the convenience store with the above Samsung Pay.
Card issuer has its own logic to determine whether the payment should be approved. Stripe has no visibility how the card issuer determines the approval. I'd recommend checking with the card issuer why this payment was declined

#

The payment intent creation request looks correct to me

zinc jewel
#

Ok. I i will check.