#waleed-prb-connect
1 messages ยท Page 1 of 1 (latest)
Hello ๐
Stripe Card Element doesn't really support Wallets like Apple or Google Pay.
Do you mean you're using PaymentElement?
yes PaymentElement which supports the Google pay, Apply pay and link
Everytime I am getting the pay with link button just
I am getting apply pay button in safari. Can anyone help me in this regard ??
Are you or are NOT getting Apple Pay button in safari?
I am not getting apple pay button in safari
Have you verified the domain?
https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements#apple-pay-and-google-pay
Yes I have added domain in configuration setting of apply pay through my stripe dashboard
which gives me a file to place in .well-known sirectory
Is the site you're testing live? If so, can you share the URL?
Can you also share the example PaymentIntent?
Web site created using create-react-app
here is the live url
stripe.paymentRequest({
country: "US",
currency: "usd",
total: {
label: "Demo total",
amount: Number((billAmount ? billAmount : 0 * 100).toFixed(2)),
},
requestPayerName: true,
requestPayerEmail: true,
}); this is my payment request object
Can you share your account ID? acct_xx
https://dashboard.stripe.com/settings/user
actually I dont have stripe session for now to login. I have publish key for my stripe account it will work ?
No that won't work. I need to check if you've registered the domain correctly which I can't do without the account ID.
Do you have an example PaymentIntent ID or some other object ID that belongs to the account you've registered the domain to??
for now I just have live and test publish keys
Actually I have another stripe account let me integrate apply pay with it first
there ?
if you have another Stripe account then you can try registering the domain there and then use it's API keys in your code
Where exactly are you testing from?
chrome for now
Sorry, like what country are you testing from?
pakistan
Apple pay isn't supported in Pakistan so you likely won't be able to see it
nopes I have also checked with my client
he is in US
he also won't able to see apple pay button
same pay with link button is showing
I see. Since I don't have your account ID, I can't can't check if you've verified the domain correctly
can you check if it is a connect acocunt or general one ? acct_1MbtlPF2qxPMBfve
That account isn't connected to any platforms so most likekly a standard account
hold on I am check
okay
here is the url https://card-scan-vercel-deploy.vercel.app/
Web site created using create-react-app
I have deployed my code
account id : acct_1MbtlPF2qxPMBfve
Its again showing me the pay with link button
there?
Please be patient, I am working with multiple users
sure
I am seeing it show up just fine
do you have any card information saved in your safari browser ?
because for me its not working, only showing link pay
also check this : {applePay: false, googlePay: false, link: true} cakeMakePayment result
If you're trying to test from an unsupported location it won't work.
The Apple Wallet needs to have a valid card saved in order for this to work
what is your location right now ?
US
can you guide what is apple wallet and how to add card in it to make my safari work for apple pay
You can't test it from Pakistan as Apple doesn't support Apple Pay there.
You can configure it like this from a supported country
https://support.apple.com/en-us/HT204506
vpn will work in that case ??
I don't think VPN helps with this either as Apple's wallet app doesn't show up on your device with a VPN
I see google pay too
yes and yes
You need to be logged in to chrome with a google account that has valid cards in Google Pay
hmmm right, same in case of apple pay ?
yup
okay thats all in case if we use payment Element of stripe. If I want to implement apple pay custom using stripe js. How I can do that is there nay way to do that ?
You're not using PaymentElement.
You're using PaymentRequest button
Yes, If I want to make custom implementation for apply pay using stripe js. I have frontend in react and backend in node js. How I will do that without payment request button
๐ stepping in here as hanzo needs to step away
So you are saying you don't want to use Payment Request Button here?
The three options for displaying Apple Pay using Stripe.JS are either using Payment Element, Payment Request Button, or Express Checkout Element (a newer version of Payment Request Button)
Can you clarify what you are looking for eactly
what is express checkout element and payment element
Payment Element: https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements
Express Checkout Element: https://stripe.com/docs/elements/express-checkout-element
I have a admin stripe account and connected account. I want to recieve payment from client through apple pay and send to its connect account
Okay so yeah sounds like you want to integrate one of the three options I mentioned. All 3 will accomplish that... I'd recommend using Express Checkout Element if you are only looking for Apple Pay
yes I am looking into express checkout and implementing it for my test stripe account
hold I will share url in few
can you please tell me how I will send payment to connect acocunt directly ? in this
What type of Connected Account is it?
standard
Okay in that case you want to initialize Stripe.JS on your Connected Account and create/confirm the PaymentIntent on your Connected Account as well. You do that by using the Stripe Account Header like we indicate here: https://stripe.com/docs/connect/authentication
waleed-prb-connect
ok It will send amount to connect account direct ? instead of admin account
Yep. See: https://stripe.com/docs/connect/direct-charges which basically explains how this works
You would set an application_fee_amount for your "platform's cut" of the purchase
application fee will be send to admin ?