nexi_payment 0.0.1-dev.2 nexi_payment: ^0.0.1-dev.2 copied to clipboard
Flutter plugin for Nexi Payment integration (XPay). Supports Web View payment
nexi_payment #
Flutter plugin for nexi payment integration.
Getting Started #
Init Nexi #
Initialize NexiPayment object with your secretKey and type of Environment(test or prod)
@override
void initState() {
super.initState();
_nexiPayment = new NexiPayment(secretKey:"_yourSecretKey_", environment: EnvironmentUtils.TEST);
}
To start the payment process just call xPayFrontOfficePaga
var res = await _nexiPayment.xPayFrontOfficePagaNonce("YOUR_ALIAS", "codTrans", CurrencyUtilsQP.EUR, amount);
//handle response
Supported features: #
WebView payment #
- xPayFrontOfficePaga
Dependencies #
Android & iOS #
- Create a Nexi account and project (or create a test backend here https://ecommerce.nexi.it/area-test )
- Retrieve a secretKey from backend