#farshidboroomand
1 messages · Page 1 of 1 (latest)
Hi! do you have a direct link to the payment page on your website where you expect to see Apple Pay appearing and it doesn't?
it's because you pass setup_future_usage: "off_session" to save the card; for now we do not support Apple Pay in Checkout when using that option.
should I remove this ?
it depends. If you remove it then the card that the customer uses to pay inside Checkout will not be saved to their Customer object in Stripe, and you might be relying on that behaviour.
right now though if you use that option the customer can't pay with Apple Pay(but they can pay with a regular card or Link or Google Pay if they're in Chrome and so on). So you'd need to understand the tradeoff.
I have also three questions:
-
we’re changing configs on stripe dashboard, and they have no effect on our checkout
-
we should be seeing a ‘payment method’ section, but it doesn’t show on our checkout
-
“Link” always appears on our checkout even if we turn off on stripe
so basically we disabled Pay with Link from dashboard but it is still showing
what we expect is like:
but we still have Pay with link
Link is controlled from a different page
https://dashboard.stripe.com/settings/link , under the "Checkout" section on that page
we should be seeing a ‘payment method’ section, but it doesn’t show on our checkout
only if there are valid payment methods to show. https://stripe.com/docs/payments/payment-methods/integration-options#payment-method-product-support In your example you're using GBP, which restricts a lot of payment methods, and also usingsetup_future_usage: "off_session"which also restrict things since not every payment method type supports being saved.
so I think seeing just card is probably correct in your case
I have already had the below config:
'payment_method_types' => ['card'],
'payment_method_types' => ['card'],
'customer' => $customerID,
'line_items' => [[
'name' => 'LuckyTrip',
'description' => $sessionDescription,
'images' => [$destinationOriginalImage],
'amount' => $dueAmount * 100,
'currency' => $this->userTripCheckout->currency_code,
'quantity' => 1,
]],
'success_url' => $successUrl,
'cancel_url' => $cancelUrl,
'locale' => app('translator')->getLocale(),
'mode' => 'payment',
'payment_intent_data' => [
'setup_future_usage' => 'off_session',
],
'payment_method_configuration_details' => [
'id' => env('STRIPE_CONFIG_ID'),
'parent' => env('STRIPE_CONFIG_ID'),
],
'metadata' => ['user_trip_checkout_id' => $this->userTripCheckout->id,
'checkout_hash' => $checkoutHash,
'country_code' => $countryCode]]);
ah well that's why you only see card 🙂