#Ujjwal
1 messages · Page 1 of 1 (latest)
Hello. How can I help? Bismarck has to step out
Hi
thanks for response
I implemented stripe but in my checkout page google pay button is not shown
Ok. How did you implement Stripe. Are you using the Payment Element?
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);
}
In early i talk with someone here he is openmy checkout page and google pay button is shown on his/her side
Can you give me a link so I can check?
Yaa sure
Session id :- cs_test_a1PxsIVtEl2ysTr9wcqngQbj1ebv53aImmvN8S86zh3ooAPUxTrhE2NcDt
Ok looking
Also see it on my end. So likely this is just an issue with your google wallet setup
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
laptop
Do you see the google pay button from that same laptop at the top here? https://stripe.com/docs/stripe-js/elements/payment-request-button
Ohh i need to check it and that time those pc is not with me
is any configration need in laptop also ??
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
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 ??
It can
You need to use chrome, be logged in, and have a card in your gpay wallet for the logged in account
Yaa , i understand