#avgn
1 messages · Page 1 of 1 (latest)
We are using generic payment element and not the old card element
We want to save the card only after user clicks a check box on our site
But as per the element, the set up future usage is to be set during intent creation itself
Is there any way to pass this parameter only when user clicks submit on the form (this way we can detect if user has agreed for the same )
Correct, the setup_future_usage parameter has to be set when creating the PaymentIntent (or when updating it). So the simplest solution would be: first ask the user if they want to save their card, and only then create the PaymentIntent with the appropriate parameters, and finally display the PaymentElement
Okay but that's not user friendly but it is what it is , right
--Any other off the beat solution , like updating intent later or first saving the card and then deleting ?
Yes there's another option that requires a bit more work, which is to update the PaymentIntent and the PaymentElement after it was created. https://stripe.com/docs/js/elements_object/fetch_updates
Will check
Question 2, more of a process question rather than an API one
Investor makes an ACH/card payment of let's say $500, money is deposited in Stripe balance minus the fees, Stripe pays out this money (500- fees) to the linked connected bank account.
Ideally we would want each transaction to come in the bank separately with an identifier about which transaction it belongs to, or as a second best option as a bulk entry for X investment transactions but again with an identifier about which transactions is the bank credit entry for. This identifier is needed at the bank end.
-
As per our study of the documentation, Stripe supports Automatic and Manual payouts. If we chose automatic we have no control about how transactions and paid out and no way to add some metadata information as well.
If we go via the manual payout via API route, the only way that we can add some information to the payout is via the 'statement_descriptor' field. This again is limited to 22 characters and there is no guarantee that the bank will utilise this descriptor at their end.
Is there a better way to solve this problem. -
Regarding refunds.
Stripe deducts the refund amount from the Stripe balance.
Consider that an transaction is paid out and the Stripe balance is empty.
Now if we have to refund a payment, there are two issues
A. Since the Stripe balance is empty, refund will fail until new funds arrive or the company tops up the balance
B. Even if funds arrive, the refund will be done directly from Stripe balance and the bank where the payout was made still has that transaction entry which will not be reversed.
Is it possible to somehow take the money back from the bank where it was paid out back to Stripe balance, so that the bank ledger properly emulates the Stripe transaction ledger.
Hey, taking over here. Which problem is that?
Asking about the points mentioned above
Starting from 'Inestor makes ...
Important point is...
"Ideally we would want each transaction to come in the bank separately with an identifier about which transaction it belongs to, or as a second best option as a bulk entry for X investment transactions but again with an identifier about which transactions is the bank credit entry for. This identifier is needed at the bank end."
Yeah the statement descriptor is the only identifier that'll be present on the banking statements
Ok
And what about the refund question, is it possible to take back the amount from bank once paid out
Like a refund to source, source herw means the Stripe balance
Hey! Taking over for my colleague. Let me catch up.
Once the payout is done, Stripe has no more control on the money, as it's now in the bank. You may need to add funds in your Stripe account from that Bank like adding funds
https://stripe.com/docs/add-funds
Okay what if we ask bank to reverse that txn, will it come back to Stripe then
I'm not sure about that, probably you need to see that with your bank... but if you want to add fund to your account after you send a payout, you can use add fund feature in Stripe:
https://stripe.com/docs/add-funds (the link I shared earlier is not the good one, sorry)
Okay thanks