#Ujjwal

1 messages · Page 1 of 1 (latest)

dense grottoBOT
vocal kelp
#

Hi
Could you please share the Checkout Session Id ?

#

@brave copper please let's keep talking in this Thread.

#

I have no checkout session id

#

but in my case it's not shown
How are you testing this ?

brave copper
vocal kelp
#

You should have a Checkout Url or Session Id.

#

log this object Session session = service.Create(options);

brave copper
brave copper
vocal kelp
#

Just share it with me to test the Checkout Session and see if I can see Google Pay or not.

brave copper
#

public IActionResult CardPayment_UjjwalGpay(int id = 0, decimal payment = 1, decimal SurgeCharge = 0, decimal Amount = 0, bool IsPayFullAmount = false)
{
var TotalPrice = payment;
StripeConfiguration.ApiKey = ConfigurationKeys.StripeSecretkey;
long UnitAmount = Convert.ToInt64(Convert.ToDecimal(TotalPrice) * 100);

        var options = new SessionCreateOptions
        {
            //PaymentMethodTypes = new List<string>
            //{
            //    "card",
            //},
            
            LineItems = new List<SessionLineItemOptions>
            {
                new SessionLineItemOptions
                {
                    PriceData = new SessionLineItemPriceDataOptions
                    {
                        Currency = "AUD",
                        ProductData = new SessionLineItemPriceDataProductDataOptions
                        {
                            Name = "Test",
                        },
                        UnitAmount = UnitAmount
                        
                    },
                    Quantity = 1,
                    
                },
            },
            Mode = "payment",
            SuccessUrl = https://localhost:4040 + "?session_id={CHECKOUT_SESSION_ID}&CustomerGuid=" + id.ToString() + "&SurgeCharge=" + SurgeCharge.ToString() + "&Amount=" + Amount.ToString() + "&IsPayFullAmount=" + IsPayFullAmount,
            CancelUrl = https://localhost:4040/failed
        };

        var service = new SessionService();
        Session session = service.Create(options);
        Response.Headers.Add("Location", session.Url);
        return new StatusCodeResult(303);
    }
vocal kelp
#

I need the Checkout Session Id and not your code.

brave copper
#

let me create it

#

is this ? :- cs_test_a1xfQr01AF4CqVzdFLLum0QylDpljrfSQUdNDIwH8HC2WkMQWUENtl5eKq

vocal kelp
#

yes, thanks for sharing. I'm seeing Google Pay in your Checkout Session. So every thing should be correct here.

brave copper
#

but why i am not seeing it

#

which url you are hitting with this id

vocal kelp
brave copper
#

My country is india and in my phone i have Google pay with valid card added

vocal kelp
brave copper
#

what should i do now , for testing it

#

because i want to test it with payment

vocal kelp
brave copper
#

No solution for this ?

#

where should i download google wallet if i can ?

vocal kelp
#

It's not available for India.

brave copper
#

But please try to undersatnd , it's very important for me to implement it and test , if you have any aternate solution please provide me

vocal kelp
#

I'm not sure, but I think you can try using a VPN and a Account based not in India

brave copper
#

in my phone i should download google wallet using VPN right ?

vocal kelp
#

You can give it a try I think.

brave copper
#

i am using VPN and try to hit checkout url but shown google pay,

#

let me try to download wallet also

vocal kelp
#

You need to have a valid card in your Google Wallet.

brave copper
#

Ok , thanks let me try it