#Patrick303 - add test balance
1 messages ยท Page 1 of 1 (latest)
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
OK thanks
great ill try these ๐
the top ups page says available in USA, would I not be able to use with my EUR account?
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
I created a payment intent here, where do i specify the test card number?
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.
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
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
I noticed the card has US for country. I have the currency set to EUR, would it still show in our EUR account?
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?
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?
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
Hi ๐ jumping in as my teammate needed to step away. What are you seeing in the response when you make a request to the /v1/balance endpoint?
https://stripe.com/docs/api/balance/balance_retrieve
"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
}
}
]
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```
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
perfect! thats working now, thanks