|
@@ -102,7 +102,7 @@ public class BubbleApiRunnerListener extends SimpleApiRunnerListener { |
|
|
.stream().filter(c -> c.usesDriver(StripePaymentDriver.class)) |
|
|
.stream().filter(c -> c.usesDriver(StripePaymentDriver.class)) |
|
|
.findFirst().orElse(null); |
|
|
.findFirst().orElse(null); |
|
|
if (stripe == null) { |
|
|
if (stripe == null) { |
|
|
die("afterScript: no cloud found with driverClass=" + StripePaymentDriver.class.getName()); |
|
|
|
|
|
|
|
|
die("stripTokenizeCard: no cloud found with driverClass=" + StripePaymentDriver.class.getName()); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
stripe.getPaymentDriver(configuration); |
|
|
stripe.getPaymentDriver(configuration); |
|
@@ -118,7 +118,7 @@ public class BubbleApiRunnerListener extends SimpleApiRunnerListener { |
|
|
final Token token = Token.create(tokenParams); |
|
|
final Token token = Token.create(tokenParams); |
|
|
ctx.put(CTX_STRIPE_TOKEN, token.getId()); |
|
|
ctx.put(CTX_STRIPE_TOKEN, token.getId()); |
|
|
} catch (Exception e) { |
|
|
} catch (Exception e) { |
|
|
die("afterScript: error creating Stripe token: " + e); |
|
|
|
|
|
|
|
|
die("stripTokenizeCard: error creating Stripe token: " + e); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|