#CowBoy0602
1 messages · Page 1 of 1 (latest)
You're using API keys from different Stripe account to create and confirm the Setup Intent. This error is expected:
- Creation: https://dashboard.stripe.com/test/logs/req_6y10c22QocfXY5 (
acct_1KcypKCVgz1OfKdx) - Confirmation: https://dashboard.stripe.com/test/logs/req_f7zdBb27wglWvx (
acct_1Ln8RVCeATzipXCN)
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Looks like they're completed unrelated accounts, too (i.e. not a Connect platform/connected account)
So how do I solve that please? I just have one account i don't know why ? how should I check these different accounts
?
You need to use API keys (secret & publishable) from the same account when creating/confirming. Which account of those is the one you want to use?
my stripe account is on my email adress amelekhcoco@gmail.com
i dont have other accounts
i am using java script to create the setupintent and the confirmsetupintent in my java code
Well, somehow you're using API keys from different accounts. I suggest logging into your Dashboard, and checking the acct_xxx ID of the account: https://dashboard.stripe.com/settings/account
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Please can you check what I asked
Then in your Android code that's confirming the Setup Intent, you're using the wrong key. You should go to the Dashboard, and use the publishable key (pk_xxx) when initialising the SDK
From here: https://dashboard.stripe.com/test/apikeys
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
I have checked on the code you are right its not the same key but why? since i get it from my javascript code in the stripe = new Stripe(getApplicationContext(), responseMap.get("publishableKey"));
here is the js code : * This will create a stripe user which will be used to
*/
exports.create_setup_intent = functions.https.onRequest(async (request, response) => {
const snapshot = await admin.database().ref().child('stripe_customers').child(request.body.uid).once('value')
console.log("snapshot:",snapshot)
const customer = snapshot.val().customer_id
console.log("customer:",snapshot.val().customer_id)
const setupIntent = await stripe.setupIntents.create({ customer });
const clientSecret = setupIntent.client_secret
// Send publishable key and SetupIntent details to client
response.send({
publishableKey: functions.config().stripe.pk,
clientSecret: clientSecret
});
});
this one : "publishableKey: functions.config().stripe.pk" dont get the right key
What does functions.config().stripe.pk return? I imagine that's set incorrectly
thank you for your precious help