Skip to content

Commit 4780e1f

Browse files
committed
feat: add PaypalPaymentGateway implementation gated by StripeAvailableCondition
1 parent 5432687 commit 4780e1f

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.condition;
2+
3+
import com.otavio.jakarta.cdi.RequiresCondition;
4+
import jakarta.enterprise.context.ApplicationScoped;
5+
6+
@RequiresCondition(StripeAvailableCondition.class)
7+
@ApplicationScoped
8+
public class PaypalPaymentGateway implements PaymentGateway {
9+
10+
@Override
11+
public void pay() {
12+
System.out.println("Processing payment with Paypal");
13+
}
14+
}

0 commit comments

Comments
 (0)