PayPal constructor
PayPal(
{ - required String clientID,
- required String clientSecret,
- bool sandboxMode = true,
})
Implementation
PayPal({
required this.clientID,
required this.clientSecret,
this.sandboxMode = true,
}){
this._url = sandboxMode ? "https://api-m.sandbox.paypal.com" : "https://api-m.paypal.com";
//https://www.twilio.com/docs/glossary/what-is-basic-authentication#:~:text=Basic%20Authentication%20is%20a%20method,of%20each%20request%20they%20make
this.encodedCredentials = base64Encode("$clientID:$clientSecret".codeUnits);
}