#zihsa-interac

1 messages ยท Page 1 of 1 (latest)

tender jolt
#

Hi there! I will try my best to help!

#

I was wondering if you have a request id (req_xyz) handy for me to look at please?

teal hinge
#

Hey! Thanks a ton!! How can I get the request id from the customer id?

#

Is it somewhere where the payment intent logs are?

tender jolt
#

A customer id will also work, if you could copy me this id that would be great ๐Ÿ˜„

teal hinge
#

Hahah for sure!!

#

customerId
cus_LHkMH8AgwYvWh5
cus_LHkMoqHIa94Cit
cus_LHkTgm5gJl8q4L
cus_LHkYwSDD7IZ4bw
cus_LHm5eopnLJL03B
cus_LHm5e3D0bJmAQE
cus_LHnYmZuz6CUEtw
cus_LHnZI5j0OO2dd9
cus_LHo9TbfGcwARQP
cus_LHoAlrRfhdvB3G
cus_LHntqTx6t8yisN
cus_LHnueJ7biScEle

#

So these are the customer ids from the list

#
 orderId    customerId    multiPaymentWithOneInterac    cardBrandCopy
    cus_LHkMH8AgwYvWh5    TRUE    mastercard
    cus_LHkMoqHIa94Cit    TRUE    visa
    cus_LHkTgm5gJl8q4L    TRUE    visa
    cus_LHkYwSDD7IZ4bw    TRUE    mastercard
    cus_LHm5eopnLJL03B    TRUE    interac
    cus_LHm5e3D0bJmAQE    TRUE    visa
    cus_LHnYmZuz6CUEtw    TRUE    visa
    cus_LHnZI5j0OO2dd9    TRUE    visa
    cus_LHo9TbfGcwARQP    TRUE    mastercard
    cus_LHoAlrRfhdvB3G    TRUE    visa
    cus_LHntqTx6t8yisN    TRUE    visa
    cus_LHnueJ7biScEle    TRUE    visa
#

maybe this helps better lol?

tender jolt
#

Let me check for you ๐Ÿ™‚

teal hinge
#

Thank you thank you!!

tender jolt
#

I was wondering how are you writing the customers and respective payments into your database?

teal hinge
#

And then sendEvent gets back a response where I do this:

        const result = await TangoStripeTerminal.createPayment(chargeInfo);
        const stripeResponse: DocumentData = result as DocumentData;

        if (stripeResponse.isInteracPayment) {
          setInsertCard(false);
          setCardLoading(false);
          setPaymentInProgress(false);
          setPaymentComplete(true);

          alertSound.play((success) => { });

          const customerModel = createCustomerModel({ ...(result as object), customerId: customerId }, 'stripe');
          await completeTabAndOrder(customerModel);
        }
}
#

We have part of the frontend code in react native - so the createPayment method is in Kotlin and if we know it's an interacPayment - completeTabAndOrder is a db call to just save it

#

So there's not too many steps in between the payment processing and saving the data