Skip to content

Commit

Permalink
Merge pull request #247 from timofey97/master
Browse files Browse the repository at this point in the history
remove only one key initialization condition
  • Loading branch information
rdlabo authored Jan 25, 2023
2 parents 02c66fd + d4370cd commit bed3d9e
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public void load() {
@PluginMethod
public void initialize(final PluginCall call) {
try {
if (publishableKey == null) {
// if (publishableKey == null) {
publishableKey = call.getString("publishableKey");

if (publishableKey == null || publishableKey.equals("")) {
Expand All @@ -105,9 +105,9 @@ public void initialize(final PluginCall call) {

PaymentConfiguration.init(getContext(), publishableKey, stripeAccountId);
Stripe.setAppInfo(AppInfo.create(APP_INFO_NAME));
} else {
Logger.info("PaymentConfiguration.init was run at load");
}
// } else {
// Logger.info("PaymentConfiguration.init was run at load");
// }
call.resolve();
} catch (Exception e) {
call.reject("unable to set publishable key: " + e.getLocalizedMessage(), e);
Expand Down

0 comments on commit bed3d9e

Please sign in to comment.