#Srujan

1 messages · Page 1 of 1 (latest)

devout geyserBOT
dense oyster
#

If you want a reference I can try a link the thread where we discussed this

lucid robin
#

Hello! Let me have a look at the other thread...

dense oyster
#

There's a lot going on but mostly from alex-stripe is where I got this info

lucid robin
#

Okay, so it sounds like you were trying to use a connected account created in test mode with live mode keys, and that wasn't working, correct?

dense oyster
#

Opposite, it was a connect account created in live mode using test mode keys

#

And that wasn't working

#

Apparently I need a connect account created in test mode with test mode keys for google pay to work. Testing it out by creating payment intents manually with curl I was able to get a successful google payment

#

So I'm wondering if the same restriction applies to apple?

lucid robin
#

I'm not aware of the restriction you're talking about, still going through the other thread to understand the core issue...

#

Okay, I read through the previous thread, and I'm not really sure what the previous person was talking about. If you have an account connected to your platform in live mode you can use Google Pay in test mode just fine. You can also use Apple Pay in test mode just fine, but only after you validate the Apple Pay domain in live mode.

#

Can you tell me more about what exactly was stopping you from testing Google Pay with an account connected in live mode?

#

I'm also investigating more internally; maybe this is just something I'm not aware of.

#

Ah, I found it. The specific issue you're experiencing is unique to Google Pay, and only happens when you don't have a test connection to the connected account (in addition to the live connection). If you establish a test connection to the connected account in addition to the live mode connection Google Pay should work fine in both live and test.

dense oyster
#

We do have a test connection I'm assuming unless I don't really know what that is

#

Like I can observe payments in test mode with this account ID and this is what we've been using acct_1LowvdDTwu9XYxBB

#

but that didn't work for google pay

#

so I had to use acct_1LT8QGQo4ogIFLAC

#

ideally I would only use the first one

#

if it's not test connected, how do I make it so?

lucid robin
#

Yeah, you're only connected to that first account, acct_1LowvdDTwu9XYxBB, in live mode. You can establish a test mode connection to it as well using Oauth.

dense oyster
#

Do you mind sharing some links to docs explaining this process?

dense oyster
#

I'm still confused, and this is posted on that page you linked. ```OAuth is not recommended for new Connect platforms. We recommend using Connect Onboarding for Standard accounts instead.

Starting in June 2021, Platforms using OAuth with read_write scope won’t be able to connect to accounts that are controlled by another platform.```

#

I don't see mention of test mode connection though

lucid robin
#

It's fine to use in test mode for a situation like this. You can create the OAuth link using your test mode client ID instead of your live mode client ID.

dense oyster
#

where do I do this? On my server?

lucid robin
#

Step 4 happens on your server, yeah.

dense oyster
#

Is there a way to do this with curl commands?

#

I'm just confused as to how I'm supposed to set this up. I'm not trying to create new accounts, I'm just trying to make acct_1LowvdDTwu9XYxBB test connected.

#

I already have a test mode created connect account like this one acct_1LT8QGQo4ogIFLACbut I would have to change my endpoints for creating the paymentIntent to use this one only for google pay

lucid robin
#

Right, I'm trying to help you establish a connection from your platform to acct_1LowvdDTwu9XYxBB in test mode. You use OAuth to do that. Basically you create the OAuth link using the approach in the docs, visit it while logged in as the connected account, then complete the connection process. You can do it manually if you want by grabbing the access token and making the final requests by hand.

dense oyster
#

Ah I see, thank you

#

So i'm at the platform settings, do I grab the live mode client_id or test mode client_id?

lucid robin
#

Test mode.

dense oyster
#

and do I need to set a redirect uri if i'm trying to do this manually?

#

So acct_1LowvdDTwu9XYxBB is my primary account I'm trying to use. it shows it can't connect to itself. Am I missing something here?

lucid robin
#

Ah, wait, maybe I misunderstood. Which account is the platform account?

dense oyster
#

I'm confused as to what you mean by platform account? It's called SSA primary in the dashboard, that's where we can see all of our live and test mode connect accounts

#

acct_1LowvdDTwu9XYxBB is the live mode connect account that we are using test keys for payments on local and dev

lucid robin
#

The platform account is the primary account that all the other accounts connect to.

dense oyster
#

so yeah the name is SSA primary