Skip to content

App Fees in payment parameters cause cash transactions to fail. #78

@parkercast

Description

@parkercast

When an app fee is specified in the payment parameters, it causes the transaction to fail with invalid PaymentParameters if cash is selected as the payment option in the Square prompt.

I would set the AdditionalPaymentMethods parameter to 'keyed,' however, my app uses the tap to pay on iPhone feature, and this solution causes tap to pay to become unavailable. Additionally, TAP_TO_PAY is not available as one of the AdditionalPaymentMethod enum options, despite being one of the options in the ios SDK.

I would be fine with offering just Tap To Pay as an AdditionalPaymentMethod, but I am having issues getting that AdditionalPaymentMethod to work as an added enum via my own patch.

Is there a workaround to make it so the appFee parameter is not processed if cash is chosen as the payment method in the square prompt? And if not, is there a simple way for me to just remove Cash as an additional payment method and allow either Keyed or Tap To Pay?

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions