PayHereLK / payhere-mobilesdk-reactnative

PayHere Mobile SDK for React Native
8 stars 6 forks source link

Feature Addition: Support amount parameter in Pre-approval Payment Request #21

Open PayHereDevs opened 2 years ago

PayHereDevs commented 2 years ago

Add a parameter to the Pre-approval Request so that it accepts an amount.

While currently Pre-approval only generates a Customer Token (that can be later used by the PayHere Charging API, the API is capable of performing a charge at the same time.

For example, in a scenario such as 'Pay (with Save Card Enabled)' - the customer will be charged, and a token will be generated as well.