#ll0071

1 messages · Page 1 of 1 (latest)

snow apexBOT
grave hound
#

Hi. What exactly is the issue you are seeing?

nova barn
#

So I call the service with those lines from your api doc : var service = new BalanceTransactionService();
service.Get("txn_idf...");

#

but when I use mine, I cant use the BalanceTransactionService.get method

#

Any Idea of what may be happening ?

grave hound
#

Never share your secret key in here

#

I deleted the message

#

Even if it's a test key

nova barn
grave hound
#

Yeah that's your key

#

We display your test key in the docs

#

If you're logged in

#

Not sure by what you mean by "when I use mine". Your test key should be the same

#

Unless you have 2 accounts and you're getting them mixed up

nova barn
#

hmmm where can I see that key in my account

heavy venture
nova barn
#

I think I figured out my problem. Thank you guys!

#

I got another question

#

When getting the Fee from Stripe, it get return as a number with no point,comma. Is there a way to easily convert that do the actual fee in dollar

heavy venture
nova barn
#

I use your JS Confirm a PaymentIntent method to confirm a pi, however I dont get back the balance_transaction object from it. Is it possible to get it when using that method ?

heavy venture
#

Are you using clientside Stripe.js or our node.js library?

nova barn
#

stripe.js

heavy venture
#

Unfortunately it is not possible to get that back with the Stripe.js confirm call. You will need to make a server-side call to retrieve it and send the relevant data from the server to the client

nova barn
#

do you have docs on that server-side call if I got the PI stored and just wanna get the balance_transaction object.

heavy venture
#

In that case you can just retrieve the payment intent and expand charges.data.balance_transaction , that will list all charges related to the payment and have all the info on their balance transactions. https://stripe.com/docs/api/payment_intents/retrieve https://stripe.com/docs/api/expanding_objects