Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
gvdongen committed May 15, 2024
1 parent 7b38ec1 commit b557e36
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ public class PaymentService {
private static final Logger logger = LogManager.getLogger(PaymentService.class);
private static final StripeUtils stripe = new StripeUtils();

private static final Serde<PaymentIntent> paymentIntentSerde = Serde.using(
private static final Serde<PaymentIntent> paymentIntentSerde =
Serde.using(
intent -> intent.toJson().getBytes(),
bytes -> ApiResource.GSON.fromJson(new String(bytes), PaymentIntent.class)
);
bytes -> ApiResource.GSON.fromJson(new String(bytes), PaymentIntent.class));

@Handler
public void processPayment(Context ctx, PaymentRequest request) {
Expand Down Expand Up @@ -100,10 +100,10 @@ public void processPayment(Context ctx, PaymentRequest request) {
}

@Handler
public boolean processWebhook(Context ctx,
// The raw request is the webhook call from Stripe that we will verify in the handler
@Accept("*/*") @Raw byte[] request
) {
public boolean processWebhook(
Context ctx,
// The raw request is the webhook call from Stripe that we will verify in the handler
@Accept("*/*") @Raw byte[] request) {
Event event = stripe.parseWebhookCall(request, ctx.request().headers().get("stripe-signature"));

if (!PaymentUtils.isPaymentIntent(event)) {
Expand Down

0 comments on commit b557e36

Please sign in to comment.