#brdata-payment-skip

1 messages · Page 1 of 1 (latest)

smoky crestBOT
eager parrot
#

@past locust I'm going to need a lot more details to help you. There are dozens of ways to integrate Stripe so the first part would be explaining exactly waht you're using (Checkout, PaymentElement, PaymentLink, something else?) and then clarify what "bypass the payment option" means

past locust
#

I currently have a checkout page in which people are paying for their shopping orders - One of my clients would like it so that they can click a custom button that I would make that would say "Pay in store" which would then skip over the stripe payment and still make all the stripe webhook calls it normally would is this possible?

eager parrot
#

I currently have a checkout page
I'm really sorry but I need you to be crisp about what you're doing. What are you using to integrate/build that checkout page? Are you using our Checkout product where you redirect the customer to our hosted payment page or something else?

past locust
#

Im using that

#

I already have it fully implemented and working. Just trying to add a skip over payment option

eager parrot
#

I'm sorry you keep doing it

#

that link has 3 separate options to integrate that are completely different from each other.

#

Please try to explain using our real product names so that I can help you

past locust
#

Custom payment flow - sorry just trying to understand what youre asking

#

Im using a payment intent

eager parrot
#

Stripe has dozens of integration paths. I'm trying to figure out which one you are using. So you create a PaymentIntent and then what? You use PaymentElement client-side? Or CardElement? Or ExpressCheckoutElement? Or something else?
Really sorry but this is crucial to help you they all work differently

past locust
#

Ahhhh

#

1 sec now I understand what youre asking

#

<h2>Payment Info:</h2>
<form id="payment-form">
<div id="link-authentication-element">
<!--Stripe.js injects the Link Authentication Element-->
</div>
<div id="payment-element">
<!--Stripe.js injects the Payment Element-->
</div>
<h3>Address</h3>
<div id="address-element">
<!-- Elements will create form elements here -->
</div>
<br />
<button id="submit">
<div class="spinner hidden" id="spinner"></div>
<span id="button-text">Pay now</span>

            </button>

            <div id="payment-message" class="hidden"></div>
        </form>
#

Payment-element

eager parrot
#

perfect okay

#

So basically your code has a page where you create a PaymentIntent for the right amount and then client-side you render various Elements (LinkAuthentication, AddressElement and PaymentElement) to collect payment details and confirm the PaymentIntent.

Now you want to find a way to offer say a 100% off discount to some of your customers?

past locust
#

Maybe that but it would be more for admins of the website to use to where they would build the order for the customer and then have a way to checkout the order without having to pay for it.

#

IS a discount code of 100% the best option for this?

eager parrot
#

Not really I'm just trying to understand your goals. There's no "discount" support on PaymentIntent at all

#

But ultimately: It's impossible to do a $0 PaymentIntent or anything like this, so you need to be able to handle the "skip payment" without any of those events. This is really something purely on your end

#

brdata-payment-skip

#

@past locust does that make sense? Any other question I can help with?

past locust
#

Yes thank you so much for the help

#

Seems like even a 100% discount wouldnt work right?