#ilya-applepay-paymentrequest

1 messages ยท Page 1 of 1 (latest)

high groveBOT
alpine oak
#

@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?

manic latch
#

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

alpine oak
#

Why wouldn't you use our official integration and instead try to do this yourself?

manic latch
#

I want to support W3C payment standard

alpine oak
#

but why?

manic latch
#

the API is ready and Safari support it

alpine oak
#

you should use this. It'll take you5 minutes and you're done

manic latch
#

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 ๐Ÿ™‚

alpine oak
#

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.

manic latch
#

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

alpine oak
#

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

manic latch
#

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

alpine oak
#

ilya-applepay-paymentrequest

manic latch
#

W3C API is about UI, it shows the Apple Pay browser UI component.

alpine oak
#

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.

manic latch
#

why I should do it with stripe if I could do it with W3C? ๐Ÿ™‚

alpine oak
#

oh well I tried repeatedly

manic latch
#

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

alpine oak
#

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

manic latch
#

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

alpine oak
#

yes because it's a different integration pattern

#

sorry I keep trying to tell you but you seem set in your approach ๐Ÿ™‚

manic latch
#

so is it correct that processing certificate should come from Stripe?

alpine oak
#

yes

manic latch
#

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?

alpine oak
#

Google has a completely different integration

manic latch
#

should be the same since the same API

alpine oak
#

ยฏ_(ใƒ„)_/ยฏ it's not

manic latch
#

do you have code for wrapper on top of w3c payment request API for me to investigate?

alpine oak
#

no

manic latch
#

for the button you reference?

#

for your paymentIntend

alpine oak
#

I'm sorry I don't understand what your sentence could mean

manic latch
#

For decoding infromation on the server I need to pass a token as you mentioned. And this token should probable include Stripe's token?

alpine oak
#

yeah that's the part I explained was completely undocumented

manic latch
#

if you have this library on github I could take a look myself and decode it to make it easier for you

alpine oak
#

But we don't

#

Like in theory we only address public features on Discord.

manic latch
#

so how do I pass the Stripe key to the server then without using your front-end component?

alpine oak
#

I'm sorry you're throwing words I don't grasp

#

"pass the Stripe key to the server", what key, what server?

manic latch
#

hm

alpine oak
manic latch
#

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?

alpine oak
#

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

high groveBOT
manic latch
#

thank you very much!

#

It is helpful, will try to figure out