Skip to content

Commit bf51b4d

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

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.RequiresSetting;
4+
import jakarta.enterprise.context.ApplicationScoped;
5+
6+
@RequiresSetting(name = "payment.provider", value = "paypal")
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)