#SagSaw-PaymentElement
1 messages · Page 1 of 1 (latest)
yes
var options = new SessionCreateOptions
{
Mode = "payment",
ClientReferenceId = System.Guid.NewGuid().ToString(),
SuccessUrl = domain + "/success.html",
CancelUrl = domain + "/cancel.html",
LineItems = new List<SessionLineItemOptions>
{
new SessionLineItemOptions
{
PriceData = new SessionLineItemPriceDataOptions
{
UnitAmount = 2050,
Currency = "USD",
ProductData = new SessionLineItemPriceDataProductDataOptions
{
Name = "Payment",
},
},
Quantity = 1,
},
},
};
this is the code
we have to hide billing details
the code you pasted is for the Stripe Checkout - it'll collect the Billing address when required by default. There's no way to totally disable it i'm afraid. https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-billing_address_collection
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
But in your demo link, you have given option
Preview some of the features available in our prebuilt, hosted payment page.
there should be some settings
as far as i can tell from the link you provided, there isn't an option to disable address collection. If you're seeing that option can you share the screenshot and circle it in red or something? Maybe i'm missing an option which you're seeing on your side
yes you can open link and check it
In the link, you can see there are multiple options
this is what i'm seeing - there's no address here
shipping address and billing address are two different parameters
you can choose not to collect the shipping address, but you cannot choose not to collect the billing address. The billing address will be collected where required
it's not possible to disable the highlighted section
Our customers not using this
and it is mandatory in the payment form
Our 2nd query is.
Once the payment is successful, how can we extract the transaction details?
Which api do we need to call?
if you're using Stripe Checkout, there's no way to disable billing address collection. You can build your own checkout form if you want, and use it with the Payment Element : https://stripe.com/docs/payments/payment-element, but it would involve quite a bit of effort from your end to build it from scratch.
Once the payment is successful, how can we extract the transaction details?
you would want to listen for the checkout.session.completed webhook event
gimme a while to check on this
ok
hmmm, sorry, i'm not too familiar with ASP.NET, i think it should work with both. You can give it a try, otherwise, feel free to write in at https://support.stripe.com/contact/email and someone else more familiar with ASP.NET will get back to you