#Alan Tse
1 messages · Page 1 of 1 (latest)
The easiest way is to use stripe checkout
You don't need to explicitly call show() and you should just use payment request button in your integration.
If you use checkout, can you limit your usage to applepay only?
Block other paymentmethod,cuz the customer will chose the method in my payment page first
You can set the payment_method_types to ['card'] when creating a checkout session (https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_method_types) so that Checkout page would just show card and apple pay (if available) to customers
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Hey, taking over here. Let me know if there's any follow-up Qs I can answer!
Bit of a broad question! Is there a specific use case you're trying to account for?
Because we want to get around the can't show problem, we want to get the order result after the user clicks, update the amount with apple.js, and then call show
Sorry, I'm not sure I understand your question yet. But in order to integrate Apple Pay with Stripe you have two options:
Use Stripe Payment Request Button: https://stripe.com/docs/stripe-js/elements/payment-request-button
Or Stripe Checkout (this will include all enabled/matched other PaymentMethods )