#dasdasd_code

1 messages ¡ Page 1 of 1 (latest)

wintry matrixBOT
#

👋 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/1431211379247026260

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

valid ruin
#

What is your account ID (acct_xxx)?

next fjord
#

This is my test video. I loaded the stripe test website in the app and it showed that Apple Pay was supported. Then I loaded my webpage and it said it was not supported. However, my webpage can create an Apple Pay button in the Safari browser.

next fjord
valid ruin
#

Well, there's one registered, but it's not the URL you shared. You need to register www.howhowfresh.com and any other (sub)domains

next fjord
#

This is registered, please check if it is correct

valid ruin
#

Then that must be on a different account to the ID you just gave me

#

Looks like a Sandbox account? So I would guess that you're using the wrong API keys in your integration

next fjord
valid ruin
#

I see Apple Pay there

#

Do you have a real card in the Apple Pay wallet on your device?

next fjord
#

I can create a button in Safari, but not in webview. Does this have anything to do with whether there is a card in Apple Wallet? Because I use the same Apple device, but there are two results on different platforms. If I can't create an Apple Pay button because there is no card, then I shouldn't be able to create an Apple Pay button in Safari either.

valid ruin
#

Generally Apple Pay won't work in webviews

next fjord
#

You are right, but using the stripe test page, I can indeed create an Apple payment button in my webview, but my web page does not work. If there is a problem with my configuration, where do you think it is most likely? You may check the latest test video

valid ruin
#

I don't know as you've not shared any code with me

#

How are you integrating? Which APIs/UIs?

wintry matrixBOT
next fjord
#

I used https://www.html5plus.org/doc/zh_cn/webview.html to create a webview. Our framework is uniapp. Here's my code: <template>
<view>
</view>
</template>
<script>
var wv;
export default {
onLoad() {
// #ifdef APP-PLUS
wv = plus.webview.create("","custom-webview",{
plusrequire:"none", // Disable remote web pages from using the plus API. Some web pages created with mui may listen to plus.key, causing confusion when closing the page. This can be disabled.
'uni-app': 'none', // Do not load the uni-app rendering layer framework to avoid style conflicts.
top: 0,
})
wv.loadURL("https://docs.stripe.com/testing/wallets")
wv.loadURL("https://www.howhowfresh.com/mgjzweb")
var currentWebview = this.$scope.$getAppWebview(); // This object is equivalent to plus.webview.currentWebview() in HTML5 Plus. Directly using plus.webview.currentWebview() in a Vue page in Uni-App will not work.

currentWebview.append(wv); // This must be appended to the current page!!! This allows it to animate and close with the current page.

setTimeout(function() {
console.log(wv.getStyle())
}, 1000);
// #endif
}
};

valid ruin
#

I meant the Stripe code. Which Stripe code are you using to embed the Apple Pay button. Express Checkout Element?

#

Does it load on there in a non-webview browser?

next fjord
mellow linden
#

Hey! Taking over for my colleague. Let me catch up.

valid ruin