#ro-bazh_api
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/1440081627731726396
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there ๐ what are you seeing in the response to your requests? (we don't log the output of GET requests) And where are you looking in the dashboard?
My suspicion is that you are looking at Payment Method Domains for your own Platform account in the Stripe Dashboard, but this request you shared is retrieving the Payment Method Domains for your Connected Account. If that's a correct assumption, the responses shouldn't necessarily be the same since you're looking at two different accounts.
nop I'm looking direclty to the connected account not on mine
here's the request to create the payment method domain on the account acct_1S8o2SPmV7RMt2m0
req_JVIe7ufyWorSm5 it returned the id pmd_1SSPrGPmV7RMt2m0tmNCtgnL
sorry that was not the request
I fixed it, but the pmd pmd_1SSPrGPmV7RMt2m0tmNCtgnL is not visible in the dashboard but and if I visit the dashboard the pm that is visible is id pmd_1SSlmNPmV7RMt2m0dKtK9224
but I make a get request such as req_P4wSfOqPTOscuZ on the API it only returns the pmd_1SSPrGPmV7RMt2m0tmNCtgnL
Gotcha, taking a closer look
When you're looking in the Dashboard, are you using "View Dashboard as [Connected Account]" feature?
no in this case the client gave me access to their dashboard, so I'm seeing it directly
So I think what you're seeing is the PMDs they control for their own account when you're in their dashboard, but in the API you're only seeing the domains relevant for your Platform that are on that Account.
ummm... that's sounds weird tbh
But my teammates and I really aren't that well versed in the dashboard. That's usually something our Support team knows better than we do. From a technical standpoint, there are two separate PMDs in this case. One for the Account doing it's own payments, and one for your Connect integration for this Account. Then I think it's reasonable to block you from seeing each others, so you can't mess with them and possibly break an integration.
umm the funny thing is that when I created the pmd over the API the pmc was still requesting to add the domain to use apple pay and google pay
Can you elaborate on this part, what does this mean?
the pmc was still requesting to add the domain to use apple pay and google pay
and even if I make the request using the secret api for the client directly instead of using the "connect" way I get the same result over the API
so our platforms uses Apple pay and google pay for express donation, and was not visible on the forms of the clients so we added the domain over the API and didn't fix anything, so the client gave me access to their dashboard to debug, and the pmc on the google pay option had a message that a step was missing and that step was adding the domain, so I reviewed it on the dashboard a no pmd was visible so I added it on the dashboard and that fixed the notice
does that make sense?
That sounds like something isn't being initialized correctly for Connect then if settings on the Connected Account are changing payment behavior, but I still don't have much context on your integration. Is it safe to assume you're using a Direct Charge flow for your Connect structure? And are you using Payment Element + Payment Intents for the payment processing, or maybe Checkout Sessions?
umm I mean, sounds like, but it got solved when I added the domain on the dashboard
but yes, we're using the wallet elements with payment intents
Which is why it sounds like your Connect integration isn't set up correctly.
Are you creating your Payment Intents before or after the Express Checkout Element?
after
Gotcha, can you share your code for initializing Stripe.js?
this.stripe = Stripe(publicKey);
this.stripeElements = this.stripe.elements({
locale: this.getLocale,
mode:
this.isOneTimeDonation
? "payment"
: "subscription",
amount: this.amount,
currency: this.currency.toLowerCase(),
setup_future_usage: "off_session",
});
Does that publicKey belong to the Connected Account or your Platform?
And do you know what kind of charges you're trying to make? The three types are listed here:
https://docs.stripe.com/connect/charges#types
direct charges and it's their account
For Direct Charges, that should be your Platform's publishable key, and you use the stripeAccount option to specified the Connected Account making the payment.
https://docs.stripe.com/js/initializing#init_stripe_js-options-stripeAccount
Then the PMDs that you can see from the API should be the ones being used.
๐ Toby has to head out so I'll be taking over the thread. Just getting caught up.
umm ok.. so to create the client's domains I need to create those on my account instead of the connected account?
You can follow the directions for Direct Charges here
https://docs.stripe.com/payments/payment-methods/pmd-registration?dashboard-or-api=dashboard#register-your-domain-while-using-connect
ok
so this went like very far from my original question xD so thank you for your help, it make sense now
Of course! I'll let Toby know since they did all the heavy lifting here ๐
haha thanks, have a great day ๐