initialize method
Implementation
initialize(BuildContext context){
EdfaPgSdk.instance.ADAPTER.CARD_PAY.execute(
order: _order!,
payer: _payer!,
callback: CardPayResponseCallback(
success: (EdfaPgTransactionDetailsSuccess response){
Log(response.toJson().toString());
_onTransactionSuccess!(response);
},
failure: (EdfaPgTransactionDetailsSuccess response){
Log(response.toJson().toString());
_onTransactionFailure!(response);
},
error: (EdfaPgError error){
_onError!(error);
}
),
onFailure: (err){
}
);
Future.delayed(const Duration(milliseconds: 200)).then((value) {
if(_onPresent != null) {
_onPresent!(context);
}
});
}