Click here to Skip to main content
16,022,069 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i want to hide the "Securely save my information for 1-click checkout" while doing payment by stripe embedded checkout, in javascript and .net.


i tried to off some setting from stripe portal account, but it's not work for me.

What I have tried:

var options = new SessionCreateOptions
{
    UiMode = model.UiMode, //"embedded",
    LineItems = new List<SessionLineItemOptions>(),
    ClientReferenceId = "123456",
    Mode = model.Mode, //"payment",
    CustomerEmail = model.Email,
    
};


foreach (var item in model.LineItems)
{
    var stripeLineItem = new SessionLineItemOptions
    {
        PriceData = new SessionLineItemPriceDataOptions
        {
            UnitAmountDecimal = (item.UnitAmount / item.Quantity) * 100,
            Currency = item.Currency,
            ProductData = new SessionLineItemPriceDataProductDataOptions
            {
                Name = item.Name,
                Description = model.TransactionId.ToString()
            },
        },
        Quantity = item.Quantity,
    };
    options.LineItems.Add(stripeLineItem);
}



var service = new SessionService();
Session session = service.Create(options);
Posted
Updated 11-Sep-24 3:51am

1 solution

You would have to ask Stripe support if it's even possible and how to do it if it is.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900