#sagarbeatbrain_api
1 messages · Page 1 of 1 (latest)
👋 Welcome to your new thread!
⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1270620687362691123
📝 Have more to share? Add more details, code, screenshots, videos, etc. below.
yes
You don't need certificate
It will automatically display ApplePay in an eligible device
YEs, but i have create Application using web APIs so i have uploaded certificate
What do you mean by Application using web APIs?
I have created iOS and Android App using API's and i have integrate API using my website API
I have below code :
$session_data = array(
'payment_method_types' => ['card'],
'mode' => 'subscription',
'line_items' => [
[
'price' => $prices,
'quantity' => 1,
],
],
'customer_email' => $user->email,
'ui_mode' => 'hosted',
'success_url' => Uri::root().'index.php?option=com_burble&view=dailyburblequotes&task=dailyburblequotes.stripereturn&user_id='.$user->id.'&e='.base64_encode(json_encode($extra)).'&session_id={CHECKOUT_SESSION_ID}',
'metadata' => $metadata,
);
if($coupon_id != ""){
$session_data["discounts"] = [['coupon'=>$coupon_id]];
}
$session = $stripe->checkout->sessions->create($session_data);
Yes so this will open a webview, correct?
yes
When user select stripe payment from iOS or Android Apllication it will redirect to stripe payment webview
Using Above code
And do you open it in SFSafari or the Chrome browser
it depends on the webview
the default one should display ApplePay or GooglePay if your device configured
It will open webview in Application itself
That's probably why you don't see the button
You want to either open it in SFSafariController for example, or Chrome. Otherwise it's better to use the mobile SDKs
I have checked in Safari and Google Chrome, but its not visible
It shows me only Pay with Link
On the same device, if you use the default browser and open the same Checkout URL, do you see the buttons?
Can you paste here one example URL?
Yes iPhone has card in wallet but need to verify that card
So that's why its not showing
Can you please also check for Google Pay?
Here you are
If i have open webview in My iOs or Anroid Application itself why its not showing me GPay or Apple Pay?
when webview is opened in same device
There are multiple type of webview
depends on which function or method you are openning them
For example I know iOS has this class https://developer.apple.com/documentation/safariservices/sfsafariviewcontroller
which should behave like the default browser
Okay, and for Android Aplication?
Not sure but looks like this Intent thing: https://developer.android.com/guide/components/intents-common#Browser