#z_code

1 messages · Page 1 of 1 (latest)

half finchBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1259697963597299806

📝 Have more to share? Add details, code, screenshots, videos, etc. below.

coarse reef
#

If you log paymentIntent before setting it in collectPaymentMethod, is it in the form of pi_xxx?

verbal sigil
#
 LOG  Created PaymentIntent: {"amount": 50, "amountDetails": {"tip": {"amount": null}}, "amountTip": 0, "captureMethod": "manual", "charges": [], "created": "1720390320000", "currency": "usd", "id": "pi_3Pa3JMDjqaZIGrui2ufkrZ5G", "metadata": {}, "offlineDetails": null, "paymentMethod": null, "paymentMethodId": null, "sdkUuid": "60DB801F-5188-4950-9071-8C4FA3D5AEDF", "statementDescriptor": null, "statementDescriptorSuffix": null, "status": "requiresPaymentMethod"}
 LOG  [Stripe terminal]: didChangePaymentStatus waitingForInput
 LOG  [Stripe terminal]: didChangePaymentStatus waitingForInput
 LOG  [Stripe terminal]: didRequestReaderInput ["tapCard"]
 LOG  [Stripe terminal]: didRequestReaderInput ["tapCard"]
 LOG  [Stripe terminal]: didChangePaymentStatus ready
 LOG  [Stripe terminal]: didChangePaymentStatus ready
 LOG  Collecting payment method: undefined
 LOG  error undefined
#

No there is no error either

#

Both return undefined

coarse reef
#

In this pi_3Pa3JMDjqaZIGrui2ufkrZ5G, https://dashboard.stripe.com/logs/req_jo43KOyLILVbPT showed:

Your account cannot currently make live charges. If you are the site owner, please activate your account at https://dashboard.stripe.com/account/onboarding to remove this limitation. If you are a customer trying to make a purchase, please contact the owner of this site. Your transaction has not been processed

#

Can you try test mode key secret and publishable key to check if the integration works?

verbal sigil
#

Okay, let me try. I don't have a test card though so it was fail

coarse reef
verbal sigil
#

let me try in live mode, my account is already onboarded

#

okay... weird

#

Check out this paymentIntent id: pi_3Pa7ruIfr2dTjlGD2rGmLhEF

#
 LOG  [Stripe terminal]: didChangePaymentStatus waitingForInput
 LOG  [Stripe terminal]: didRequestReaderInput ["tapCard"]
 LOG  [Stripe terminal]: didRequestReaderInput ["tapCard"]
 LOG  [Stripe terminal]: didChangePaymentStatus ready
 LOG  [Stripe terminal]: didChangePaymentStatus ready
 LOG  Collecting payment method: undefined
 LOG  error undefined
 LOG  Payment method collected: undefined
 LOG  [Stripe terminal]: didChangePaymentStatus processing
 LOG  [Stripe terminal]: didChangePaymentStatus processing
 LOG  [Stripe terminal]: didChangePaymentStatus ready
 LOG  [Stripe terminal]: didChangePaymentStatus ready
 LOG  Payment intent confirmed: undefined
#

My logs however show something else.

coarse reef
#

Your integration is working, but the log trace you shared doesn't seem to log the information correctly

verbal sigil
#

Yes, I refunded it

#

Just wondering why it’s like that

coarse reef
#

I'd recommend checking whether the variables are logged correctly

verbal sigil
#

Sure, I’ll do that.

#

Thanks for your help @coarse reef. I’ll reopen a thread if I have more question.

coarse reef
#

No problem! Happy to help 😄

verbal sigil
#

Actually, one question.

#

How would I simulate a decline payment using TTPOI?

coarse reef
#

I'm afraid it's not possible to simulate decline payment in live mode

verbal sigil
#

As I assumed. Thanks.

#

What about in test mode? I need the card from stripe?

coarse reef
verbal sigil
#

Got it. Thanks.