#sagarbeatbrain_api

1 messages · Page 1 of 1 (latest)

gritty daggerBOT
#

👋 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.

latent cedar
#

Okie so are you using the Stripe hosted Checkout Session?

#

on web?

queen dock
#

yes

latent cedar
#

You don't need certificate

#

It will automatically display ApplePay in an eligible device

queen dock
#

YEs, but i have create Application using web APIs so i have uploaded certificate

latent cedar
#

What do you mean by Application using web APIs?

queen dock
#

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);
latent cedar
#

Yes so this will open a webview, correct?

queen dock
#

yes

#

When user select stripe payment from iOS or Android Apllication it will redirect to stripe payment webview

#

Using Above code

latent cedar
#

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

queen dock
#

It will open webview in Application itself

latent cedar
#

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

queen dock
#

I have checked in Safari and Google Chrome, but its not visible

#

It shows me only Pay with Link

latent cedar
#

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?

latent cedar
#

Looks fine

#

Your iPhone has card in wallets?

queen dock
#

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?

latent cedar
#

Here you are

queen dock
#

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

latent cedar
#

There are multiple type of webview

#

depends on which function or method you are openning them

#

which should behave like the default browser

queen dock
#

Okay, and for Android Aplication?

latent cedar