how can i get bank account number from source in stripe API? - stripe-payments

I am using ACH payment for collecting money from customer as investment. I can add bank account using plaid and stripe. But how can i get bank account number from source in stripe API?

You cannot. By design, Stripe's API will not return the full account number, only the last 4 digits (via the last4 attribute).

Related

How to make custom payment to a customer

I am looking for a way to make payment to a customer like a business do.
for eg. a business will ask you to fill the form with bank name, acoount number IFSC code etc.
so customer can receive a payment.
I have user who is having a digital wallet with some amount.
I want to transfer the amount to user's provided bank account on the request.
I saw stripe documentation but I am not sure if stripe support custom payment.
Stripe provides refund as per below method where I have to provide charge id string
and because of charge id stripe will refund only the amount which was charged earlier and this is linked to particular charge only.
const stripe = require('stripe')('your_stripe_key');
const refund = await stripe.refunds.create({
charge: 'charge_id_string',
amount: 100,
});
I want to make custom payment/refund so I can transfer users wallet available balance to bank account.
Any suggestion will be appreciated.
I don't think you should use Refund because you can only create a refund based on an existing charge.
You should probably look at Transfer, which allows you to send funds from your Stripe account to a connected account. In your use case, you should create a connected account for your customer so that you can transfer refunds to your customer and eventually payout to their bank account.
Visit here to learn more about Stripe Connect.

Xero Workflow and payment accounts when creating paid invoices via API?

I'm trying to work out the correct method of attributing payments on invoices that are automatically created after a user purchases something on site, payment handled by Stripe (or other payment gateway). Here is the current flow from user action to Xero interaction (all working fine):
User purchases membership on site
Payment is processed by Stripe on-site
If payment is successful, an Invoice is generated in Xero (and a contact if it doesn't exist)
Payment is added to the invoice immediately after it is generated, and it's status is set to Paid.
Paid invoice is emailed to new member from Xero
Stripe deposits money in nominated business account each day
I have two questions about this workflow
What is the normal practise for dealing with PaymentAccount when applying a payment? Should we create a new payment account just for Stripe? A new "Bank" account for Stripe? The context of this question is selecting the correct PaymentAccount ID for the payment when creating the invoice.
Will reconciliation still be possible for these paid invoices when Stripe sends payments (assuming they send itemised payments)? Even if the money is deposited in a different (Real) account integrated in Xero?
Thanks
Your questions about stripe are more appropriate in Xero forums, since they are bookkeeping questions not API qestions.
Stripe can provide a bank feed to Xero, and you should set this up.
This means you have a Stripe bank account, which is the therefore the payment account. Payment reconcilations are easy (but can't be done via API).
The actual deposit of real money into a real bank account will be a consolidated amount typically called a 'settlement', typically one day of transactions, less fees, refunds and possible timing issues etc. The Stripe bank feed will have an entry for this. It is reconciled by a Xero user as a bank transfer between the Stripe bank and the real bank, and is nothing to do with the payment on the invoice.

Stripe to collect recurring ACH payments with Plaid verification

I am currently able to collect single ACH payment using Plaid and Stripe. Users on the app make their payments using the bank login models provided by the plaid.
However, I could not find any resources regarding storage of plaid authorized bank tokens so that it can be used later for automated recurring payments.
Looks like Plaid has documentation on this available here: https://plaid.com/docs/stripe/
Specifically, step 4 details the endpoint used to exchange the Plaid token and account ID from a Stripe bank account token.

How to retrieve amount Stripe credited to my account for an order

I'm using Stripe's payments API with their Java library. Our Stripe account is denominated in EUR.
If we charge a customer an amount in USD, and the charge is successful, the charge is credited to our account in the EUR equivalent.
How can we use the Stripe API to find out this EUR amount immediately after the order was successful?
You need to retrieve the balance_transaction associated with the charge, using the charge's balance_transaction attribute.
The converted amount will be available in the balance_transaction's amount attribute.

Can I send funds from my stripe account to another stripe account without using the recipient's credit card number?

Can I send funds from my stripe account to another stripe account without using the recipient's credit card number? In my website, I want the admin to transfer funds from his account to the user's stripe account (not the user's bank account). User's stripe account info will be stored on registration to my site. If there is a way to transfer funds in this way, please share it with me.
Thanks in advance!
As I understand it you can't do exactly as you wish (i.e. transfer money from one Stripe account to another) but you could take a look at Stripe Connect which allows you to collect payments on one of your user's behalf. The money will then be paid into their Stripe account minus Stripe's fees and your own (if any).
See here for further info:
https://stripe.com/docs/connect

Resources