#Patrick303 - add test balance

1 messages ยท Page 1 of 1 (latest)

zinc copper
#

Hello, you can either create a top of for your account or you can take payment with our test cards that put money right in your available balance

#

I will send docs for those in a moment

grave sleet
#

OK thanks

zinc copper
#

Let me know if those help

grave sleet
#

great ill try these ๐Ÿ‘

#

the top ups page says available in USA, would I not be able to use with my EUR account?

zinc copper
#

Probably not, I would say try it just in case we allow it in test mode for non-USA accounts

#

Otherwise we can easily work through making large test charges on those test cards

grave sleet
#

I created a payment intent here, where do i specify the test card number?

zinc copper
#

It is actually a bit easier than that. You can pass in payment_method='pm_card_bypassPending' and that should automatically attach a card with that number to the payment intent.

grave sleet
#

ok cool, I used that and it set the payment methond to pm_1LIvA5DH8k62wf0v6FgfnVWn - I tried to trigger a payment.created afterwards but it still returns an error saying the balance is too low

#

sorry, forgot to mention I also ran - stripe payment_intents confirm pi_3LIvA5DH8k62wf0v0wZDvwKP

zinc copper
#

Thanks for the update. I will check in to that payment in a moment. If a payment with that number succeeds it should go straight in to your account's available balance

grave sleet
#

I noticed the card has US for country. I have the currency set to EUR, would it still show in our EUR account?

zinc copper
#

Yes, it should be able to make non-usd payments

#

Interesting it really does look like that should have gone to your available balance. What do you see for your available balances here?

grave sleet
zinc copper
#

Ah so when I said "it should be able to make non-usd paymets" I was 100% wrong. We have another card for that, pm_card_bypassPendingInternational, my apologies for missing that

#

Can you try again with the other bypass pending card?

grave sleet
#

ok, tried again and can see the new card, payment shows as succeeded but when i try to trigger the payout.create it still says there is not enough balance

pallid coral
grave sleet
#

"object": "balance",
"available": [
{
"amount": -3126,
"currency": "cad",
"source_types": {
"card": -3126
}
},
{
"amount": -598,
"currency": "gbp",
"source_types": {
"card": -598
}
},
{
"amount": -19990,
"currency": "aud",
"source_types": {
"card": -19990
}
},
{
"amount": 4000,
"currency": "eur",
"source_types": {
"card": 4000
}
},
{
"amount": 0,
"currency": "usd",
"source_types": {
"card": 0
}
}
],
"connect_reserved": [
{
"amount": 0,
"currency": "cad"
},
{
"amount": 0,
"currency": "gbp"
},
{
"amount": 0,
"currency": "aud"
},
{
"amount": 1847,
"currency": "eur"
},
{
"amount": 0,
"currency": "usd"
}
],
"livemode": false,
"pending": [
{
"amount": 0,
"currency": "cad",
"source_types": {
"card": 0
}
},
{
"amount": 0,
"currency": "gbp",
"source_types": {
"card": 0
}
},
{
"amount": 0,
"currency": "aud",
"source_types": {
"card": 0
}
},
{
"amount": 1645372,
"currency": "eur",
"source_types": {
"card": 1645372
}
},
{
"amount": 550,
"currency": "usd",
"source_types": {
"card": 550
}
}
]

pallid coral
#

Okay, looks like you have a negative balance in every currency except eur. I also notice that the command you're using will create a payout, but only because it's necessary to trigger the event type that you're specifying.

Could you instead try to create a payout via the CLI directly?
https://stripe.com/docs/api/payouts/create?lang=cli

Command looks like:

  --amount=1100 \
  --currency=eur```
grave sleet
#

perfect! thats working now, thanks