paynow 1.0.0 copy "paynow: ^1.0.0" to clipboard
paynow: ^1.0.0 copied to clipboard

outdated

A new Flutter package project.

paynow #

This is an unofficial flutter package for Paynow

Getting Started #

Paynow paynow = Paynow(integrationKey: "XXXXXXXXXXXXXXXXXXXXX", integrationId: "XXXX", returnUrl: "http://google.com", resultUrl: "http://google.com");
Payment payment = paynow.createPayment("user", "user@email.com");

payment.add("Banana", 1.9);


// Initiate Paynow Transaction
paynow.send(payment)
..then((InitResponse response){

// display results
print(response());

// Check Transaction status from pollUrl
paynow.checkTransactionStatus(response.pollUrl)
..then((StatusResponse status){
print(status.paid);
});
});


paynow.sendMobile(payment, "0784442662", "ecocash")
..then((InitResponse response){
// display results
print(response());

// Check Transaction status from pollUrl
paynow.checkTransactionStatus(response.pollUrl)
..then((StatusResponse status){
print(status.paid);
});
});

NOTE #

This package is now in BETA and has breaking changes. Refer to docs

All contributions and PRs are welcome :) AND don't be shy to open issues.

Demo Video https://drive.google.com/open?id=0B6_hKkaW57fmc3dGQXdGY0RaZUNuNU5rRmJGZEZPNUJXeHY4

SuperCode