Skip to content

Commit 04c5540

Browse files
committed
feat: add PaypalPaymentGateway implementation gated by payment.provider setting
1 parent bf51b4d commit 04c5540

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package com.otavio.jakarta.cdi.app;
2+
3+
import com.otavio.jakarta.cdi.RequiresCondition;
4+
import jakarta.enterprise.context.ApplicationScoped;
5+
6+
@RequiresCondition(StripeAvailableCondition.class)
7+
@ApplicationScoped
8+
public class StripePaymentGateway implements PaymentGateway {
9+
10+
@Override
11+
public void pay() {
12+
System.out.println("Processing payment with Stripe");
13+
}
14+
}

0 commit comments

Comments
 (0)