#amann5952

1 messages · Page 1 of 1 (latest)

leaden compassBOT
sleek flame
#

Hi, is there a Doc you are following?

grave pollen
#

The doc for tap to pay are not available yet

The only issue we are having is, after the update, if we don’t pass all parameters in the collectoaymentmethod, it throws error

sleek flame
#

but if you ppass, it will say "This feature is currently not available for the selected reader", correct?

#

I mean, you may have following some resource to write those code. It would be appreciated if you could clarify them

grave pollen
#

This error is related to this issue here

https://github.com/stripe/stripe-terminal-react-native/issues/413

tikiwade commented on Nov 7, 2022
I was involving it like this:

const { paymentIntent, error } = await collectPaymentMethod({
paymentIntentId: stripePaymentIntent.id,
skipTipping: true,
tipEligibleAmount: false,
});

I removed the tipEligibleAmount and it seems to have worked.
Thank you

GitHub

Describe the bug I am getting the following message in the console {"code": "FeatureNotAvailableWithConnectedReader", "message": "This feature is currently not av...

#

Because M2 readers don’t support tipping

sleek flame
#

Okie, can you share your request which removed the tipEligibleAmount parameter?

grave pollen
#

let paymentCollect = await collectPaymentMethod({
paymentIntentId: paymentIntent.id
});

Error collecting payment: {"error": {"code": "InvalidRequiredParameter", "message": "A required parameter was invalid or missing."}}

What else you need?

sleek flame
#

Do you have access to Stripe Dashboard?

#

We need to request id from there

grave pollen
#

Okay. Let me find

#

@tulip reef can you provide above?

leaden compassBOT
tulip reef
#

@sleek flame accountId: acct_1NMwO2Cf0QhAtby3

sleek flame
#

We need the request id which errored with A required parameter was invalid or missing

radiant rain
tulip reef
#

@radiant rain

radiant rain
#

That looks like a request that succeeded, but you mentioned your request was erroring out. Is that error not reaching Stripe?

#

Also, are you using Typescript at all?

tulip reef
radiant rain
#

got it. So you don't see in your logs anywhere that the request is failing? It's failing before the request is ever sent?

radiant rain
#

If you remove all references to tipping, does it still error?

#

Also, you mentioned that this is for Tap to Pay. Are you part of a beta that allows tipping? If so, are you passing a beta header somewhere?

grave pollen
#

If we remove all references it says that required parameter was not provided

#

We are part of beta

#

Not passing any header anywhere

radiant rain
#

I think that may be the problem. If you're using the beta version of the SDK on a reader that is not compatible with that beta, then that would make sense.