Closed MSIH closed 2 years ago
I had that problem too, I ended up doing
BraintreeGateway Gateway = new BraintreeGateway
{
Environment = Braintree.Environment.ParseEnvironment(Configuration["BT:Environment"]),
MerchantId = Configuration["BT:MerchantId"],
PublicKey = Configuration["BT:PublicKey"],
PrivateKey = Configuration["BT:PrivateKey"]
};
👋 thanks for reaching out, @smendoza88's is correct, you need to parse the Braintree.Environment.
General information
Issue description
This works: gateway = new BraintreeGateway(Environment, MerchantId, PublicKey, PrivateKey);
This gives the error "cannot convert string to Braintree Environment"