#lelouch

1 messages · Page 1 of 1 (latest)

pseudo axleBOT
dire cradle
#

Do you you haven any example events?

wide jolt
#

i dont think they all do

#

yes i do

#

event:
issuing_authorization.request

#

amount is 0 but pending_request object has the amount but not in negative

dire cradle
#

Just the Event ID will work

wide jolt
#

i dont get it

#

u mean i can call something with the id ?

#

oh ahahah u meant i should just provide the id

#

issuing_authorization.request : evt_1Nb4vGC2b2UXE1UE3fTJPkEu

#

issuing_authorization.created : evt_1Nb4vIC2b2UXE1UEuhtHZ99o

#

issuing_authorization.updated : evt_1Nb4wXC2b2UXE1UEojU41R27

#

issuing_transaction.created : evt_1Nb4wXC2b2UXE1UEWJNkq139

pseudo axleBOT
fringe oak
#

Hello! I'm taking over and catching up...

wide jolt
#

Hello sure no problem

fringe oak
#

The information you want should be on the Balance Transaction on these. You can see in there the amount and if it was negative or not.

wide jolt
#

sure let me check for all

fringe oak
#

There's also the top-level amount on these.

wide jolt
#

the balance_transaction is a string

#

do i call something to get the info ?

#

yes there is the amount but some are 0 or have no - sign to know if taking out

fringe oak
#

The ones with a zero amount are validations, they're not moving money.

#

What's your high-level goal?

wide jolt
#

for instance when a user want to pay for something, this event gets called first issuing_authorization.request

#

when it does i want to create our own transaction details

#

which ofcourse will be in pending state

#

but when i look into the data given for that event

#

the amount is 0

#

then the next event is issuing_authorization.created, which is called after i accepted the transaction

#

the amount now is a number but does not have any negative sign to show that its a deduction

#

same with issuing_authorization.updated

#

i see balance_transactions

#

do i need to get from there ?

fringe oak
#

Ah, I think you want the info in the pending_request on the issuing_authorization.request Event.

wide jolt
#

yep

#

i see it there for issuing_authorization.request

#

for
issuing_authorization.created its null

fringe oak
#

Right, because it's no longer pending.

#

Now the info is on the Issuing Authorization itself.

wide jolt
#

yep

#

but how do i get the right amount ?

#

i kinda wanna keep track

#

i dont know what each event might change

fringe oak
#

I'm not sure I understand your question, can you provide more details? What do you mean by change?

wide jolt
#

i mean whats the right way to track when card is used ?

#

this are the event i get when a card is used/tested

fringe oak
#

Do you understand the difference between the Events you're asking about?

wide jolt
#

i want to know the amount each time

#

yes i do

fringe oak
#

Okay, I guess I don't understand your question then?

wide jolt
#

let me go one by one

#

when u used ur card to pay for netflix maybe

#

this event gets called issuing_authorization.request

#

i accept it or decline it and if accepted this event issuing_authorization.created gets called

#

then if automatic capture is allowed or i do it myself which is the last thing

#

this event issuing_authorization.updated gets called

fringe oak
#

Yep.

wide jolt
#

then i also noticed in the transactions page a new transaction will be added and its event is this issuing_transaction.created

#

now imagin u trying to pay for ur netflix or anything

#

the first event is called

#

and you looking at ur phone

#

refreshing to see updates

#

and on my side i want to show to u that yes u are paying for netflix but its in pending state and its process is not finished

#

this gives you the user a clear message that ok things going on

#

then as next event happen i update the transaction and show to you

#

and in the end it will either be the transaction was accepted and all went well or was declined

#

now lets say maybe for some of us this might happenes in milliseconds

#

but maybe for someone else might take longer, so showing them that transaction with its details rest them assured

#

now how am i supposed or where in the data for each event to get the right amount details or any additional fees in which i will show to the user to see while whole process going on ?

#

you get me ?

fringe oak
#

I understand what you're saying, yep. The part I don't understand is that you just listed all the Events you would listen to in order to get the information you want, so I don't understand what you need help with. To put it another way, it sounds like you just said to me "here are the places where I can get the data I want to display" and I agree, those are indeed the places to get that data, so I'm confused about what your question is or where you're stuck?

wide jolt
#

yep i listed them but i am asking for guidance which part of each data is the right to look into

#

for instance

#

its amount is not negative

#
      {
        "id": "txn_1Nb4vHC2b2UXE1UE30fQU8ka",
        "object": "balance_transaction",
        "amount": -1500,
        "available_on": 1691082171,
        "created": 1691082171,
        "currency": "usd",
        "description": "Hold for authorization",
        "exchange_rate": null,
        "fee": 0,
        "fee_details": [
        ],
        "net": -1500,
        "reporting_category": "issuing_authorization_hold",
        "source": "iauth_1Nb4vGC2b2UXE1UE43NpkJr9",
        "status": "available",
        "type": "issuing_authorization_hold"
      }
    ],```
#

but then it has that

#

then

#

this also not negative

#
      {
        "id": "txn_1Nb4vHC2b2UXE1UE30fQU8ka",
        "object": "balance_transaction",
        "amount": -1500,
        "available_on": 1691082171,
        "created": 1691082171,
        "currency": "usd",
        "description": "Hold for authorization",
        "exchange_rate": null,
        "fee": 0,
        "fee_details": [
        ],
        "net": -1500,
        "reporting_category": "issuing_authorization_hold",
        "source": "iauth_1Nb4vGC2b2UXE1UE43NpkJr9",
        "status": "available",
        "type": "issuing_authorization_hold"
      },
      {
        "id": "txn_1Nb4wXC2b2UXE1UEs3tmghpn",
        "object": "balance_transaction",
        "amount": 1500,
        "available_on": 1691082249,
        "created": 1691082249,
        "currency": "usd",
        "description": "Released hold for authorization due to capture",
        "exchange_rate": null,
        "fee": 0,
        "fee_details": [
        ],
        "net": 1500,
        "reporting_category": "issuing_authorization_release",
        "source": "iauth_1Nb4vGC2b2UXE1UE43NpkJr9",
        "status": "available",
        "type": "issuing_authorization_release"
      }
    ]```
#

but i see this

fringe oak
#

The amount on the Issuing Authorization is the amount of the transaction. The Balance Transaction is negative because that amount is being deducted from your balance to cover that transaction.

wide jolt
#

ok but how do i know its debit or credit ?

#

a person can add money into their card right ??

fringe oak
#

You mean like a debit or credit card, or money moving into or out of your account?

wide jolt
#

yes when u make purchase u taking out, when a friend sends to ur account u adding in

#

how do i differenciate ?

fringe oak
#

The amount would be negative on the Issuing Authorization if money is being added to the card.

#

But, actually, I'm not sure an Authorization would be created in that case, hang on...

wide jolt
#

huh why

#

i am getting confused now hahaah

#

shouldnt it be positive if adding to the card

fringe oak
#

Yeah, I believe Authorizations are only for purchases.

#

For credits to the card I think you would only get an Issuing Transaction.

wide jolt
#

hmm i see

#

how to test that tho ?

#

this should be documented ahaha

#

what do i select ?

#

i am currently working on the virtual cards

fringe oak
#

You don't, that's to create a test authorization. I don't believe that would apply if you want to test a credit.

wide jolt
#

hmm

#

a question tho, can virtual card recieve money internationaly ?

#

also how to test a credit ?

fringe oak
#

You could create a purchase and then refund it.

#

I don't know about the receive money internationally part, can you explain more about what you mean?

wide jolt
#

as in if somone create their own vertual card based on their local currency and someone in another country wants to send them money from whatever bank

#

can they do that ?

#

will the virtual card person receive it ?

fringe oak
#

How would they send them money?

wide jolt
#

ah yes u right, they will need the bank number

#

seems i have been mixing virtual card and normal banking card together

#

veirtual card is just for online pyaments

fringe oak
#

Yep, that's correct.

wide jolt
#

ahahah this totally ruins ma plan hahaha

#

anyways thanks i have some changes to make then will see how things goes

fringe oak
#

Happy to help!

wide jolt
#

One last thing the question came up suddenly

#

is it possible to convert virtual card to normal card ?

fringe oak
#

I don't believe so, no. I think you would need to create a separate physical card.