#ashutosh.pant
1 messages · Page 1 of 1 (latest)
Hi there, can you share with me the error message you get from 1/ ?
2/ I don't see an option to set a merchant image
Sure give me sometime to fetch it
3/ you can use a physical test card with decimanl ending 02 or 03 to test PIN capture https://stripe.com/docs/terminal/references/testing#physical-test-cards
3/ You mean amount should be with decimanl ending 02 or 03?
Yes you are right
We have tested it with these decimal amout, but its not asking for the PIN.
Are you outside US, and using a physical test card from Stripe?
Yes we are based in india.
Are you testing with a physical test card looks like this?
YEs
For question 1, here is the error:
connectLocalMobileReader failed: Error Domain=com.stripe-terminal Code=9040 "An error occurred, applicationEC: UNAUTHORIZED, errorDetails: []" UserInfo={NSLocalizedDescription=An error occurred, applicationEC: UNAUTHORIZED, errorDetails: [], com.stripe-terminal:Message=An error occurred, applicationEC: UNAUTHORIZED, errorDetails: []}
What does your code look like?
let connectionConfig = LocalMobileConnectionConfiguration(locationId: selectedReader.location?.stripeId ?? "", merchantDisplayName: selectedReader.location?.displayName, onBehalfOf: "Weave Inc")
https://stripe.dev/stripe-terminal-ios/docs/Classes/SCPLocalMobileConnectionConfiguration.html#/c:objc(cs)SCPLocalMobileConnectionConfiguration(py)onBehalfOf the onBehalfOf expect a valid connected account ID, what you specified isn't one.
Also if i am sending it as nil then also i am getting the same error.
What is "destination charges" ?
I was thinking "OnBehalfOf" field is end customer name who is going to pay.
https://stripe.com/docs/connect/destination-charges learn more about destination charge here
https://stripe.com/docs/terminal/payments/connect-reader?reader-type=tap-to-pay you should also follow this guide to implement tap to pay.
Yes we are using the same link.
Jack What about Testing with PIN ?
One step at a time.
I'll suggest you fix the integration first so that you can test PIN capture
Yes.
getting error in this scenario as well.
https://stripe.com/docs/terminal/payments/setup-integration?terminal-sdk-platform=ios Have you completed these steps? i.e., setup a connection token endpoint and initialize the SDK?
Yes its all done.
We have tested the positive flow also.
with the let connectionConfig = LocalMobileConnectionConfiguration(locationId: locationID) configurations.
But we are trying to setup configuration with merchant display name and on behalf of field. For this we are getting error which i have shared earlier.
Are you using connect to create a direct charge or destination charge?
Or maybe you can tell me what you want to achieve with Stripe API?
We are not sure about it. let me confirm with our respective team.
We are trying to achieve if we can edit the merchant display name and OnBehalfOf field.
No, this is not OnBehalfOf is designed for.
As I said earlier, I don't see an option to set Merchant name or image for Tap to Pay.
What is use case for the below function:
- (instancetype)initWithLocationId:(NSString *)locationId
merchantDisplayName:(nullable NSString *)merchantDisplayName
onBehalfOf:(nullable NSString *)onBehalfOf
tosAcceptancePermitted:(BOOL)tosAcceptancePermitted NS_DESIGNATED_INITIALIZER;
or
- (instancetype)initWithLocationId:(NSString *)locationId
merchantDisplayName:(nullable NSString *)merchantDisplayName
onBehalfOf:(nullable NSString *)onBehalfOf;
One sec,
ok
https://stripe.com/docs/terminal/payments/connect-reader?terminal-sdk-platform=ios&reader-type=tap-to-pay#create-location you can set a display name for the location. Have you tried this?
Yes this we have tried but as i said earlier we were thinking if we can edit the merchant name field for any scenario. For that purpose only we were asking about it.
Edit means from the Mobile App side by using these methods.
So is the location display name refleted in the tap to pay screen?
Yes.
Great
So there's not terminal API to change the display name. The workaround here is to send a request to your backend and update the location display name through backend API
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
what is the difference in both cases while calling the function : (instancetype)initWithLocationId:(NSString )locationId
merchantDisplayName:(nullable NSString)merchantDisplayNameonBehalfOf:(nullable NSString *)onBehalfOf;
https://stripe.com/docs/connect/charges read this doc to learn more about Direct Charge and Destination Charge
If you are not using Connect, I don't think you need to use on_behalf_of.
Okay
Do you have a PaymentIntent ID that I can take a look?
you mean _stripeId = 0x0000000280053c00 "pi_3NM2dLHFzwE4pTge1V79H2JN"
?
pi_3NM2dLHFzwE4pTge1V79H2JN is the PaymentIntetn ID
okay.
OK, the paymentIntent amount is correct.
Yes
I don't know why the PIN test doesn't work, This is going to require a bit more investigation. Sorry to redirect you, but can you write in to https://support.stripe.com/contact/email with the information and example PaymentIntent that you provided. We'll respond via email/ticket after looking into it further.
Find help and support for Stripe. Our support center provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.