#dasdasd_code
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/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.
- dasdasd_docs, 2 days ago, 12 messages
What is your account ID (acct_xxx)?
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.
acct_1SJ6t0RIXKX15tKe
The domain(s) aren't registered on the account: https://docs.stripe.com/payments/payment-methods/pmd-registration
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
This is registered, please check if it is correct
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
It is a sandbox account. You can visit my website https://www.howhowfresh.com/mgjzweb/pages/apple-pay/index. When you click on the Apple Pay text, the stripe key I use will be printed in the page console.
I see Apple Pay there
Do you have a real card in the Apple Pay wallet on your device?
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.
Generally Apple Pay won't work in webviews
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
I don't know as you've not shared any code with me
How are you integrating? Which APIs/UIs?
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
}
};
I meant the Stripe code. Which Stripe code are you using to embed the Apple Pay button. Express Checkout Element?
On this URL: https://www.howhowfresh.com/mgjzweb
Does it load on there in a non-webview browser?
https://codepen.io/luck-boy/pen/RNryjvW You can see my js code in this link
Hey! Taking over for my colleague. Let me catch up.
The issue is likely that you're using PRB (https://docs.stripe.com/stripe-js/elements/payment-request-button) which is deprecated, where as the docs site uses ECE