#MrMole-trigger-`issuing_authorization.request`

1 messages Β· Page 1 of 1 (latest)

trim quail
#

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`

stuck timber
#

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?

trim quail
#

yup that's correct

stuck timber
#

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

trim quail
stuck timber
#

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});
trim quail
#

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

stuck timber
#

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 :/

trim quail
#

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?

stuck timber
#

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

trim quail
#

ah okay I se
still looking but I don't think there's a good way to test this specifically

stuck timber
#

hmm okay but how to do it in code?

dry goblet
#

Hi πŸ‘‹ I'm stepping in for @trim quail Give me a minute to catch up

stuck timber
#

sure thing πŸ™‚

dry goblet
#

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?

stuck timber
#

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?

dry goblet
#

So is the user a connected account?

stuck timber
#

what do you mean?

dry goblet
#

Where is the Balance you want to check?

stuck timber
#

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

dry goblet
stuck timber
#

yes i have this part

dry goblet
stuck timber
#

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?

dry goblet
#

Okay, I get you now

#

I'm asking about this with my colleagues

stuck timber
#

all right, thanks a lot for your time! πŸ™‚

dry goblet
stuck timber
#

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 πŸ˜„

dry goblet
stuck timber
#

Not really :/ there is no info how to trigger it programatically 😦

dry goblet
#

You cannot trigger it programmatically.

#

AFAIK

stuck timber
#

hmm so can i wait for it somehow?

#

i am asking because this process is very quick

dry goblet
#

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

stuck timber
#

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?

unkempt ledge
#

Hi there! Stepping in for @dry goblet, give me a moment to get caught up.

stuck timber
#

yeah no problem πŸ™‚

unkempt ledge
#

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.

stuck timber
#

what if i have to provide card details like that?

#

i need to send them somewhere and make a payment right?

unkempt ledge
#

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

stuck timber
#

i want to imagine the whole flow. I am right now in testing flow but i was also asking about live scenerio

unkempt ledge
#

You handle authorizing the card to make the payment.

#

Ah so you are interested in setting up a live scenario to pay yourself?

stuck timber
#

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?

unkempt ledge
#

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"

stuck timber
#

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

unkempt ledge
#

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.

stuck timber
#

okay so what should i use for my scenerio?

unkempt ledge
#

Someone in your business wants to pay for gas, correct?

#

Or are you the gas station?

stuck timber
#

the gas statiion is "mine"

unkempt ledge
#

Gotcha, so to clarify, customers will be paying you for gas

stuck timber
#

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

unkempt ledge
#

Okay yes, Issuing is not what you want for this.

stuck timber
#

because you know, i need to authorize card and then let client fuel the gas and after that charge him whole amount

unkempt ledge
#

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.

stuck timber
#

ohhh okay, sorry for wasting time and your colleagues :/

unkempt ledge
#

Not at all!

#

I'm glad you came and talked to us.

stuck timber
#

really, it is amazing that you can response so quickly!!!

unkempt ledge
#

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.

stuck timber
#

all right, i will make research and in any trouble i will contact back. Thanks you so much for help. You are the boss!!! 😎

unkempt ledge
#

πŸ‘

stuck timber
#

hmm wait a sec. In my scenerio Connected Account is for client who drives a car and want to pay for gas?

unkempt ledge
#

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

stuck timber
#

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

unkempt ledge
#

Okay so you just are accepting the funds yourself and then sending to your own bank account?

stuck timber
#

something like that. Look. i am a client/normal guy now.

  1. I drive a car and i drive to gas station
  2. I have application and before starting fuel my car i need to use my card
  3. 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.

mossy dust
#

hello again

#

let's take a step back

#

what is your overall question

#

I think I'm unclear here

stuck timber
#

i want to make upper scenerio

mossy dust
#

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

stuck timber
#

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.

mossy dust
#

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?

stuck timber
#

yes yes

#

i sued stripe issuing because i thought that is right way to do this

#

because there was scenerio for gas stations

mossy dust
#

no Stripe Issuing is not the way to do this

stuck timber
#

but now i don't know anything xd

mossy dust
#

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

stuck timber
#

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

mossy dust
#

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

stuck timber
#

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?

mossy dust
#

yeah so what you want is

#

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

stuck timber
#

all right

#

i will check it tomorrow, thanks for help again

#

and for clarifying everything ❀️