#ilya-applepay-paymentrequest
1 messages ยท Page 1 of 1 (latest)
@manic latch hello! I can try to help but I am unclear on your ask. Are you writing an iOS application. Or using a webview/browser and writing a Javascript integration like what you have on your website? Or something else?
hello, thank you for helping
I am creating a web app
but I want to use Payment Request API, meaning I want to use W3C paymentInternt instead of from Stripe, but use Stripe as a payment processor
Why wouldn't you use our official integration and instead try to do this yourself?
I want to support W3C payment standard
but why?
the API is ready and Safari support it
yes, I don't want to use Stripe's UI, Payment Request API has the UI form already built in to browsers
thank you for your suggestion but I have my reasons ๐
I mean there's no UI in what I said
but we wrap the W3C APIs to make it cleaner, and that's wht you really should use.
It works for Google Pay already and it should work well for Apple pay to, just need to figure out how to configure
thank you again for your suggestions, Payment Request API is clean enogth for me
I have validated my domain for Stripe at Apple Pay tab on Dashboard
domain validation is solely if you use our official product
it seems you are set to build this agaisnt Apple's own abstraction so I think the next step is to read their exact doc and implement that
also tried to upload Stripe iOS certificate to Apple Dev account but not sure it is needed for web
no, I don't use Apple's own abstaction (if you mean Apple Pay Js library) , I want to use W3C Payment Request API for front-end
and Stripe on backend to make a processing
ilya-applepay-paymentrequest
Okay my colleague says you want to look at https://webkit.org/blog/8182/introducing-the-payment-request-api-for-apple-pay/
W3C API is about UI, it shows the Apple Pay browser UI component.
yeah sorry we keep running in circles because you're set in your direction
We have no UI. We use the browser's UI already. All you want is to trigger the browser's UI and I assume your own button. Which really you should do with Stripe.js.
why I should do it with stripe if I could do it with W3C? ๐
oh well I tried repeatedly
thanks for the referece link, I have read this already and this explained how to work with library on the front-end. But it doesn't include information how to connect Stripe to the picture for processing
Anyways, I'd recommend reading that doc first to get started. The problem is we have no public docs for how to use this. I tried really hard to tell you but you really seem to refuse to do this and I definitely can't force you
You'll need to figure out how to pass the Apple-specific token to Stripe which is undocumented. And you do need the certificate in that case since that's what we'll use to decrypt the information so that part you were correct to set it up
I have configured Google Pay via Stripe and it works fine, but Apple pay doesn't work though should be the same type of code
yes because it's a different integration pattern
sorry I keep trying to tell you but you seem set in your approach ๐
so is it correct that processing certificate should come from Stripe?
yes
so for google pay token came from Stripe key as well
but no need for certificate
I was thinking maybe if certificate comes from Stripe there is no need to pass the token?
Google has a completely different integration
should be the same since the same API
ยฏ_(ใ)_/ยฏ it's not
do you have code for wrapper on top of w3c payment request API for me to investigate?
no
I'm sorry I don't understand what your sentence could mean
For decoding infromation on the server I need to pass a token as you mentioned. And this token should probable include Stripe's token?
yeah that's the part I explained was completely undocumented
if you have this library on github I could take a look myself and decode it to make it easier for you
so how do I pass the Stripe key to the server then without using your front-end component?
I'm sorry you're throwing words I don't grasp
"pass the Stripe key to the server", what key, what server?
hm
https://github.com/google-pay/flutter-plugin/issues/65#issuecomment-868398216 maybe read this first and that will click for you?
yes, some reference. looks like the topic of conversation is correct there. So I can get Stripe token somehow from apple token on the server and run the call to Stripe using this token?
do you have method createApplePayToken or it's variation in NodeJs library?
none of this is public or documented so none of this exists in our library. But the comment I referenced above does tell you what to do
and the earlier doc clearly also explains where to get that info and mentions https://developer.apple.com/documentation/apple_pay_on_the_web/applepaypayment