#MrMole-trigger-`issuing_authorization.request`
1 messages Β· Page 1 of 1 (latest)
Hello π
Juggling between a few threads at the moment π Give me a few to catch up
Hey there
Thank you for your patience.
In live mode, the event issuing_authorization.request would be triggered when the card is charged, so there isnβt a manual request to make to the API, it just happens when the issued card is used to pay somewhere.
However in test mode, you trigger that issuing_authorization.request via the CLI stripe trigger issuing_authorization.request`
okay, i undestand it now π so for the first time client should send all the details to custom endpoint where i will create issue cardholder and issue card right?
yup that's correct
hmmm all right. How could i block e.g 50$ instantly and after whole process, i would charge e.g 100$
so if i understand it correctly, client sends card details, server block 50$ after 10 minutes, server uses card details to charge his money
I believe we have docs on this use-case here if that helps
https://stripe.com/docs/issuing/purchases/authorizations#handling-other-authorizations
When the cardholder finishes pumping fuel, the authorization is updated i dont understand that part. How can i trigger it from code?
case 'issuing_authorization.request':
const auth = event.data.object;
await handleAuthorizationRequest(auth);
handleAuth...
await stripe.issuing.authorizations.approve(auth.id, {amount:1000});
ah what that means is you'd receive an authorization updated event with the actual amount you'd need to pay
so like gas pumps put $1 authorization but charge you for the actual amount of gas you fill
You know, i need to charge him 10$ and later i need to make update to increase that amount
and to be able to do this, i need trigger that update somehow, i don't understand that part π sorry i don't get it :/
Ah let's take a step back. Seems like there's a confusion here.
Are you trying to charge a card OR handle issuing card authorizations?
well, i just to make sure that client has at least let's say 10$ and "block" it on his card
if he has it, let's start process
after finish, i want to charge him full amount
ah okay I se
still looking but I don't think there's a good way to test this specifically
hmm okay but how to do it in code?
Hi π I'm stepping in for @trim quail Give me a minute to catch up
sure thing π
Okay so let me see if I understand this. You want to be able to programmatically block an issued card unless the end user has more than $10 balance on the card?
hmmm yes, i just want to make sure that user has 10$. If he has less, there is not point in "fueling" because he would have to end process very quick.
because i undestand that issued card is for this kind of operation to be able to change amount right?
So is the user a connected account?
what do you mean?
Where is the Balance you want to check?
my situation is identical to fueling gas in USA
there is not yet balance, we don't have any users yet. I just need to make research how to make this scenerio happen and i found that to make it, i need issued cardholder and card
Okay well you can synchronously approve or reject authorizations as shown here:
https://stripe.com/docs/issuing/controls/real-time-authorizations
yes i have this part
So you really just need to have a way to track the balance so you know which cards to approve
https://stripe.com/docs/issuing/funding/balance#track-your-issuing-balance
okay i will keep it in mind π
but the main question is, how my flow should look like
this what you sent me here, i can put there amount to charge right?
and this is this step
i don't know how to make this
How to force issuing_authorization to update in code?
all right, thanks a lot for your time! π
Okay, got answers!
Currently you can only test this via the Dashboard
https://stripe.com/docs/issuing/testing?testing-method=without-code#without-code-create-test-authorization
maybe i am blind but i don't see button Create test authorization π
ahh
wrong section
i see it now
let me test it π
okay that is testing
but how will it be triggered in live mode?
i am asking because i need to write some code for this π
That is what is covered here, I believe: https://stripe.com/docs/issuing/purchases/authorizations#authorization-updates
Not really :/ there is no info how to trigger it programatically π¦
In some cases (such as fuel or hotel authorizations) you may be able to control the amount when approving the authorization. Check the Authorization amount is controllable box in order to enable this functionality.
Once again, in the Dashboard
i think i get it.
Last thing. Client needs to use card online. So in first step he needs to insert his card number expiration date and cvv on client side.
On server side i have to handle this data and create issue cardholder and card.
Based on that details i should make a paymentIntent to trigger issuing_authorization.request in live mode. Is that correct?
Hi there! Stepping in for @dry goblet, give me a moment to get caught up.
yeah no problem π
So with Issuing you don't handle PaymentIntents at all as your cardholder is making a payment to an outside party. You handle the approving of the authorization request to charge that card. That authorization request in livemode is generated automatically due to your cardholder swiping their card with whomever they are paying.
what if i have to provide card details like that?
i need to send them somewhere and make a payment right?
Sorry, I'm a bit confused now. Where are you inputting that test card? What are you trying to do with it?
If you are using Issuing then your cardholder just inputs their card details on a website or swipes their card and then that merchant handles taking the payment
i want to imagine the whole flow. I am right now in testing flow but i was also asking about live scenerio
You handle authorizing the card to make the payment.
Ah so you are interested in setting up a live scenario to pay yourself?
haha noo π
wait a sec
I need to make exactly the same flow when you fuel gas in USA stations.
Client insert number card details and i need them on my server to save it and handle authorization request right?
Nope
Stripe handles that. You just issue the card
Then Stripe tells you "hey this card tried to make a payment for gas"
And you decide "yes I approve" or "Nope I want to decline"
okaaaaay but i need to send card details somehow. Like i need an endpoint?
i am not sure if you are familiar with react-native-stripe
these are hoooks which i can use
Your card holder sends the card details to the business that they want to pay.
What you are referencing right now is if YOU want to take payments from customers
That is not what Issuing is used for.
Payments (using PaymentIntents) is a completely separate product to accomplish a completely separate thing than Issuing is.
okay so what should i use for my scenerio?
Someone in your business wants to pay for gas, correct?
Or are you the gas station?
the gas statiion is "mine"
Gotcha, so to clarify, customers will be paying you for gas
yes, i confirmed that. Whole money goes to us and then we divide it up and payout to site hosts
so issuing is not good option for this
Okay yes, Issuing is not what you want for this.
because you know, i need to authorize card and then let client fuel the gas and after that charge him whole amount
So you want Stripe Connect for this to onboard your sites and then you will want to create a payment UI to charge your customers. Let me grab the relevant docs for you to review.
ohhh okay, sorry for wasting time and your colleagues :/
really, it is amazing that you can response so quickly!!!
So I'd recommend starting at the following link and reading through the docs that are linked there under "Multiparty payments": https://stripe.com/docs/connect
You will want to decide on which type of Connected Accounts you want to use.
Take some time to review the docs there and then feel free to shoot me any questions.
all right, i will make research and in any trouble i will contact back. Thanks you so much for help. You are the boss!!! π
π
hmm wait a sec. In my scenerio Connected Account is for client who drives a car and want to pay for gas?
No the Connected Account would be each individual gas station
Each "site" that you referenced that you are going to disburse funds to and then payout to their bank account
sorry but that is not a case :/ We will need use stripe just for guy who will pay for gas, drives a car and want to pay for gas
and this money comes to me and then i will share it. But it is not right now i our scope
Okay so you just are accepting the funds yourself and then sending to your own bank account?
something like that. Look. i am a client/normal guy now.
- I drive a car and i drive to gas station
- I have application and before starting fuel my car i need to use my card
- I insert card details in my application and i press "pay" i don't know how much but the funds will be charged from my account when i will finish fueling my car
for me it seems like charge-card-off-session
you are right, i make app for company which will take all the money from transaction.
hello again
let's take a step back
what is your overall question
I think I'm unclear here
i want to make upper scenerio
cause you were using Issuing earlier but I think the follow up questions are different? are they about Stripe Payments but not about charging Issuing Cards?
can you detail the above in more clear detail? I read but I'm nto clear
okay, let's be clear i am not sure what to use to make it right so above is scenario which i need to create in my application.
sure but just to clarify, this is still unclear
so your application is not for Stripe Issuing? but rather for charging end customers for fuel, right?
yes yes
i sued stripe issuing because i thought that is right way to do this
because there was scenerio for gas stations
no Stripe Issuing is not the way to do this
but now i don't know anything xd
Stripe Issuing is if you have a fleet of truck drivers and you need to provision them with special credit cards that they can only use for fuel and no where else
so Issuing is where you become the credit card provider
You want "Stripe Payments" where you charge regular customers' credit cards
aaa all right
i want to charge just random people who want to fuel gas
but you know. I need to make that i will handle card details and after some time i will charge fuel amount
gotcha, so do you want to charge them at a point of sale reader?
or an online app like a website?
for fuel, I imagine you want the first case?
I need to make that i will handle card details and after some time i will charge fuel amount
yes all of that is Payments still, not Issuing
online app, we have electric stations and we will charge electric vehicles so we know when someone plug in or plug out
so stripe only in mobile app and website
i need to put there card numbers and send them to server
authorize it and after some time charge them
i saw that there was an endpoint in example repo about charge-card-off-session. Will it work for me?
yeah so what you want is
you first want to "collect" a card for future usage
so you use this guide - read it fully, it has all the steps you need to integrate: https://stripe.com/docs/payments/save-and-reuse?platform=web
it also details how you get a PaymentMethod at the end of the integration, and you can charge it later on your server for the full paymetn