#waleed.bin.khalid
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. 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.
- waleed.bin.khalid, 6 days ago, 81 messages
hi! I don't really follow, do you have some example code or examples in general of what you're seeing?
yes, const stripePromise = loadStripe(
process.env.REACT_APP_STRIPE_PUBLISHABLE_KEY_LIVE,
{ stripeAccount: connectAccountId }
);
I am loading my stripe using stripeAccount header now
sounds good
if Apple Pay is not showing, make sure you registered the domain.
for Connect remember you have to explicitly register it for the connected account. https://stripe.com/docs/payments/payment-methods/pmd-registration?platform=api#register-your-domain-while-using-connect
what specific question do you have/what can I clarify?
this is how I am loading my stripe
const pr = stripe.paymentRequest({
// country: "US",
// country: stripeCountry,
// currency: stripeCurrency,
// currency: "usd",
// country: countryCode === "" ? "US" : countryCode,
country: "US",
currency: currencyCode === "" ? "usd" : currencyCode.toLowerCase(),
total: {
label: "Total tip amount",
amount: Number((tipAmount ? tipAmount * 100 : 0).toFixed(2)),
},
requestPayerName: true,
requestPayerEmail: true,
disableWallets: ["link"],
});
pr.canMakePayment().then((result) => {
if (result) {
setPaymentRequest(pr);
if (!result?.applePay) {
setIsApplePayDisabled(true);
}
}
});
this is my code for apply pay and google pay
under connect account payment methods setting apple google are on by default becasue it is setted bydefault on platform account
@wary elbow that's all fine and the code seems fine. If Apple Pay is not showing when using Connect Direct Charges, as you describe, then the most likely problem is you didn't register the domain for the connected account. See the docs I linked at https://stripe.com/docs/payments/payment-methods/pmd-registration?platform=api#register-your-domain-while-using-connect for details on how to do that.
I need to run this api everytime I am going to do apple / goole payment on connect account ?
see this
here apple pay / google pay are on bydefault
no, you do it once, for each connected account.
the Dashboard unfortuantely is irrelvant here and will not show if this has been done. You need to call the API to register the domain.