#martin-gaibisso_api

1 messages ยท Page 1 of 1 (latest)

winter oasisBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always 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/1392131587851812884

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

shadow sedge
#

Hi, i'm creating a payment intent with setup_future_usage for a card_present transaction but generated_card param is null

#

pi_3RiahsJFieew03j412lLiy37 this is an example

gray sail
#

Hey there

#

taking a look

shadow sedge
#

thanks!

gray sail
#

Hmm it doesnt look like this is a wallet-based card, which is expected to not give you a generated card, but if i recall this sometimes isn't support for others cards too

shadow sedge
#

no, its a normal test card

gray sail
#

Can you share a code snippet showing where you trigger payment method collection / processing, either in server driven code or client sdk code?

shadow sedge
#

collection is made by s700 sdk

#

Terminal.getInstance().collectPaymentMethod

#

(
paymentIntent,
object : PaymentIntentCallback {
override fun onSuccess(paymentIntent: PaymentIntent) {
continuation.resume(paymentIntent)
}

            override fun onFailure(e: TerminalException) {
                continuation.resumeWith(Result.failure(e))
            }
        },
        CollectConfiguration.Builder().skipTipping(false).build()
    )
gray sail
shadow sedge
#

thanks, will try that...

#

are you sure that method exists?

#

i'm using latest terminal core: stripeterminal-version = "3.3.0"

#

setAllowRedisplay doesnt exists

gray sail
#

Hmm

shadow sedge
#

hm, in the doc says it requires sdk 4.0 or later ๐Ÿค”

#

updating sdk...

gray sail
#

Ah yes, it looks like this is a mandatory upgrade in order to continue using saved cards

shadow sedge
#

still generated_card is null

#

pi_3Ric2CJFieew03j40KRD9fVK

#

Terminal.getInstance().collectPaymentMethod(
paymentIntent,
object : PaymentIntentCallback {
override fun onSuccess(paymentIntent: PaymentIntent) {
continuation.resume(paymentIntent)
}

            override fun onFailure(e: TerminalException) {
                continuation.resumeWith(Result.failure(e))
            }
        },
        CollectConfiguration.Builder()
            .skipTipping(false)
            .setAllowRedisplay(AllowRedisplay.ALWAYS)
            .build()
    )
}
gray sail
#

So i think this update worked, but I'm not sure where you're looking that you still see it missing

shadow sedge
#

looking at the paymentIntent.latest_charge.payment_method_details

#

{
card_present: {
amount_authorized: 200,
brand: 'visa',
brand_product: null,
capture_before: 1752411983,
cardholder_name: 'CARDHOLDER/VISA',
country: 'US',
description: 'Visa Purchasing',
emv_auth_data: '8A023030',
exp_month: 3,
exp_year: 2023,
fingerprint: 'ZQVm6jltbQ2qcNO0',
funding: 'credit',
generated_card: null,
incremental_authorization_supported: false,
issuer: 'Celtic Bank',
last4: '9969',
network: 'visa',
network_transaction_id: '908186109541061',
offline: { stored_at: null, type: null },
overcapture_supported: false,
preferred_locales: [ 'en' ],
read_method: 'contactless_emv',
receipt: {
account_type: 'credit',
application_cryptogram: 'DFA95E1628B155E4',
application_preferred_name: 'Stripe Credit',
authorization_code: '123456',
authorization_response_code: '3030',
cardholder_verification_method: 'approval',
dedicated_file_name: 'A000000003101001',
terminal_verification_results: '0000000000',
transaction_status_information: '0000'
}
},
type: 'card_present'
}

gray sail
#

Did you retrieve that after confirmation succeeded?

shadow sedge
#

you da man

#

showing now

#

took some time

#

thanks for your time!

winter oasisBOT
gray sail
#

NP! Glad thats working for you ๐ŸŽ‰