#Ujjwal

1 messages · Page 1 of 1 (latest)

zealous raptorBOT
lusty forge
#

Hello. How can I help? Bismarck has to step out

copper ledge
#

Hi

#

thanks for response

#

I implemented stripe but in my checkout page google pay button is not shown

lusty forge
#

Ok. How did you implement Stripe. Are you using the Payment Element?

copper ledge
#

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);
    }
lusty forge
#

Oh so no

#

That's checkout sessions it looks like

copper ledge
#

In early i talk with someone here he is openmy checkout page and google pay button is shown on his/her side

lusty forge
#

Can you give me a link so I can check?

copper ledge
#

Yaa sure

#

Session id :- cs_test_a1PxsIVtEl2ysTr9wcqngQbj1ebv53aImmvN8S86zh3ooAPUxTrhE2NcDt

lusty forge
#

Ok looking

#

Also see it on my end. So likely this is just an issue with your google wallet setup

copper ledge
#

where should you open it , mobile phone or laptop, pc

#

because i open it in one of my pc from austraila but it's not shown me

lusty forge
#

laptop

copper ledge
#

Ohh i need to check it and that time those pc is not with me

#

is any configration need in laptop also ??

lusty forge
#

You need to use google chrome, you need to be logged into your google account, and you need to have a card in your gpay wallet

copper ledge
#

Ok i think , i am not sure which gmail i logged in chrome , this gmail is registerd or not with wallet

#

because i am using austraila as a region and my gmail is also login with chrome

#

but i am not sure this gmail is registerd with wallet or not , is this generate issue ??

#

Hi, @lusty forge are you here ??

lusty forge
#

I have many other threads so you'll need to be patient

#

Looking now

lusty forge
#

You need to use chrome, be logged in, and have a card in your gpay wallet for the logged in account

copper ledge
#

Ok , i will check it

#

Thanks for you time

copper ledge