getOrderParams method
Implementation
Map getOrderParams() {
Map<String, dynamic> temp = {
"intent": "sale",
"payer": {"payment_method": "paypal"},
"transactions": widget.transactions,
"note_to_payer": widget.note,
"redirect_urls": {
"return_url": widget.returnURL,
"cancel_url": widget.cancelURL
}
};
return temp;
}