#Ujjwal
1 messages · Page 1 of 1 (latest)
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 ?
i directly just calling my action
You should have a Checkout Url or Session Id.
log this object Session session = service.Create(options);
how should i create it
Ok so it's return me checkout id , where should i pass it ?
Just share it with me to test the Checkout Session and see if I can see Google Pay or not.
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);
}
I need the Checkout Session Id and not your code.
let me create it
is this ? :- cs_test_a1xfQr01AF4CqVzdFLLum0QylDpljrfSQUdNDIwH8HC2WkMQWUENtl5eKq
yes, thanks for sharing. I'm seeing Google Pay in your Checkout Session. So every thing should be correct here.
You need to open the Checkout Session with supported browser (Chrome) and have a valid card in your Google Wallet.
My country is india and in my phone i have Google pay with valid card added
Google Pay isn't available in India
You can't do a test from India using Google Pay
It's not available for India.
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
I'm not sure, but I think you can try using a VPN and a Account based not in India
in my phone i should download google wallet using VPN right ?
You can give it a try I think.
i am using VPN and try to hit checkout url but shown google pay,
let me try to download wallet also
You need to have a valid card in your Google Wallet.
Ok , thanks let me try it