#Jack Drake
1 messages ยท Page 1 of 1 (latest)
Can you share your code snippet?
Sorry Discord is very busy
Looking now
When you print out the paymentIntent, what does it show?
Oh I think you need to pass the payment intent client secret instead of the payment intent object
ok lemme try that
@pale kettle why is the ReaderDisplayDelegate not in the scope
its the same code given
hey again
hey
how are you
@fallow vortex this is the error im getting
once the collectPaymentMethod is called it should show a screento collect payment but that doesnt show up and it shows error saying required parameter is invalid or missing
any ideas?
Looking, but does that delegate error seem right to you, do you have one in place?
It's mentioned in our snippets here in the docs:
https://stripe.com/docs/terminal/payments/collect-payment?terminal-sdk-platform=ios#collect-payment
Oh wait, that was removed in v2.0.0
What version are you using and where is that error in your code?
This should be in your package dependencies i think
what did you use to install the sdk?
cocoapods?
sure but how did you add the dependency to your app
Do you have a podfile.lock?
That doesnt show the version
ok yes
I'm not sure i understand how this was added
its version 2
ok and where did you get the code you're running?
if using version 2.0+ there shouldnt be any references to that delegate
here
the documentation doesnt specify otherwise
ah, interesting. ok.
Checking into this for you, trying to figure out the mismatch there
yea same
cause i just keep getting the error. required parameter is invalid or missing
Wait so the delegate error is not actually blocking you?
๐ what happens when you remove that ReaderDisplayDelegate?
no
its when the collectPaymentMethod
the documentation indicates that we need it
but it doesnt exist
Yeah I think that is outdated though
Yeah so I'll get that documentation updated
but when the collectPaymentMethod is called it shows the error
@grave isle it keeps saying that a parameter is missing
no its not
What reader are you using?
And can you give me the PaymentIntent ID that is created when you log it out?
tap to pay
Ah
pi_3MAKqV2fdyCgG0bf0qNKVag4
You need card_present in your params I believe
Yeah
So payment_method_types: ['card_present']
Try that
any ideas
from what i read the paymentMethodTypes is by default card present so im not sure what the issue is
anything?
Still looking
I'm wondering if we don't allow client-side PaymentIntent creation... Not sure why that would be the case though. But nothing else is jumping out to me in terms of you doing anything incorrectly. Have you tried server-side PaymentIntent creation?
I haven't tested/integrated tap to pay myself yet as it is nearly brand new
Going to double check internally to get an answer here. Give me a moment
Okay
Did you set the Connected Account in your SCPLocalMobileConnectionConfiguration?
yes
Yeah okay I think that is the issue
You aren't using OBO here
You are creating directly on the Connected Account
ok what is OBO
ok so if i remove it where do i put it
ok it works
but will i get charged if i test with my card
?
Do you have a Terminal Test Card?
no i do not
It should fail in testmode if you try to use your own card
ok
So yeah, you want to order one of our Test Cards to actually test end-to-end
Believe you should be able to do so from https://dashboard.stripe.com/test/terminal/hardware_orders
whats the difference if i use my card
ok quick question
now i tried my card on a 1 dollar transaction
and it says now after the paymentintent succeeded
that it requires confirmation
pi_3MALcp2fdyCgG0bf1DjeJqM4
Don't think that is the right one. That PaymentIntent hasn't gone through collectPaymentMethod
Nor processPayment
... I assume you have the code for processPayment?
no this is all i have
ok it works thank you
๐
we are using live mode for testing and ensuring that it is working
@grave isle it returns stripe api declined the transaction
We can't recommend you test in live-mode. That is against card network regulations
That is what test mode is for
A card can get declined for a variety of reasons in live mode though
it simply says generic decline