#SagSaw-PaymentElement

1 messages · Page 1 of 1 (latest)

fast solstice
#

Hi there, are you using PaymentElement?

icy dragon
#

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

balmy cloak
icy dragon
#

But in your demo link, you have given option

#

there should be some settings

balmy cloak
#

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

icy dragon
#

yes you can open link and check it

#

In the link, you can see there are multiple options

balmy cloak
#

this is what i'm seeing - there's no address here

icy dragon
#

yes check shipping option

#

it is disabled. We need same thing to implement

balmy cloak
#

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

icy dragon
#

Can we disable the highlighted one? We do not want it

balmy cloak
#

it's not possible to disable the highlighted section

icy dragon
#

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?

balmy cloak
#

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

icy dragon
#

One important thing I wish to clarify

balmy cloak
#

gimme a while to check on this

icy dragon
#

ok

balmy cloak