xpay_element_flutter_dev 0.0.1
xpay_element_flutter_dev: ^0.0.1 copied to clipboard
A payment sdk developed at xstak by team xpay. User can just add package and render payment from widget and pass keys info and collect payment from customer
User can just add packaged in pubspac file and import package and collect payment from customer.
Features #
This package is develop to collect payment from customer. by integrating this package you can modify aur style of layout according to your website.
Getting started #
To use xpay on your flutter app just add dependency in your project:
xpay_element_flutter_dev: 0.0.1
Usage #
TO use xpay sdk in your app just import package and add XPayPaymentForm into your widget like this:
XPayPaymentForm(
style: style,
controller: controller,
onBinDiscount: (value) {
print("discount event data : $value");
},
onReady: (bool result) {
print("ready event");
setState(() {
isReady = result;
});
},
),
Additional information #
This package provide couple of events like onBinDiscount and onReady. onReady event can be use to enable payment button when all fields data is valid.