Hello everyone, I have a problem with Ionic 2 and the Braintree DropIn. It works all right but I can not solve two problems:
- change the text of the button
- change the foreground color of the text boxes, I see white color on a gray background and is almost unreadable
I’m using the default dropIn which for my use is fine.
After you’ve got the token from the server:
BraintreePlugin.initialize (token,
function () {
console.log (“init OK!”);
},
function (error) {console.error (error); });
options.submitButtonText = ‘test button’;
BraintreePlugin.presentDropInPaymentUI (options, function (result) {
if (result.userCancelled) {
navCtrl.setRoot (HomePage);
}
else {
navCtrl.setRoot (BraintreePayComplete, {
nonce: result.nonce,
amount: cost
});
}
});
How can I do?
Thank you so much for any help.
Fabrizio