#ashutosh.pant

1 messages · Page 1 of 1 (latest)

covert ventureBOT
subtle elbow
#

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

young jay
#

Sure give me sometime to fetch it

subtle elbow
young jay
#

3/ You mean amount should be with decimanl ending 02 or 03?

subtle elbow
#

Yes you are right

sour cypress
#

We have tested it with these decimal amout, but its not asking for the PIN.

subtle elbow
#

Are you outside US, and using a physical test card from Stripe?

sour cypress
#

Yes we are based in india.

subtle elbow
#

Are you testing with a physical test card looks like this?

sour cypress
#

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: []}

subtle elbow
#

What does your code look like?

sour cypress
#

let connectionConfig = LocalMobileConnectionConfiguration(locationId: selectedReader.location?.stripeId ?? "", merchantDisplayName: selectedReader.location?.displayName, onBehalfOf: "Weave Inc")

covert ventureBOT
subtle elbow
sour cypress
#

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.

subtle elbow
sour cypress
#

Yes we are using the same link.

young jay
#

Jack What about Testing with PIN ?

subtle elbow
#

One step at a time.

#

I'll suggest you fix the integration first so that you can test PIN capture

sour cypress
#

Yes.

sour cypress
subtle elbow
sour cypress
#

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.

subtle elbow
#

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?

sour cypress
#

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.

subtle elbow
#

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.

sour cypress
#

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;
subtle elbow
#

One sec,

sour cypress
#

ok

subtle elbow
sour cypress
#

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.

subtle elbow
#

So is the location display name refleted in the tap to pay screen?

sour cypress
#

Yes.

subtle elbow
#

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

sour cypress
#

Okay

#

What about the test scenario for PIN as we are based in India.

#

?

sour cypress
subtle elbow
#

If you are not using Connect, I don't think you need to use on_behalf_of.

sour cypress
#

Okay

subtle elbow
sour cypress
#

you mean _stripeId = 0x0000000280053c00 "pi_3NM2dLHFzwE4pTge1V79H2JN"
?

subtle elbow
#

pi_3NM2dLHFzwE4pTge1V79H2JN is the PaymentIntetn ID

sour cypress
#

okay.

subtle elbow
#

OK, the paymentIntent amount is correct.

sour cypress
#

Yes

subtle elbow
#

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.