summaryrefslogtreecommitdiffstats
path: root/sandbox/travelsample/payment-contribution/src
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/travelsample/payment-contribution/src')
-rw-r--r--sandbox/travelsample/payment-contribution/src/payment/creditcard/impl/CreditCardPaymentImpl.java1
-rw-r--r--sandbox/travelsample/payment-contribution/src/payment/creditcard/ws/impl/CreditCardPaymentWSImpl.java11
2 files changed, 12 insertions, 0 deletions
diff --git a/sandbox/travelsample/payment-contribution/src/payment/creditcard/impl/CreditCardPaymentImpl.java b/sandbox/travelsample/payment-contribution/src/payment/creditcard/impl/CreditCardPaymentImpl.java
index 7d8fb32f3c..2a9c537775 100644
--- a/sandbox/travelsample/payment-contribution/src/payment/creditcard/impl/CreditCardPaymentImpl.java
+++ b/sandbox/travelsample/payment-contribution/src/payment/creditcard/impl/CreditCardPaymentImpl.java
@@ -30,6 +30,7 @@ import payment.creditcard.CreditCardPayment;
*/
@Service(CreditCardPayment.class)
public class CreditCardPaymentImpl implements CreditCardPayment {
+
@Reference
protected CreditCardPayment creditCardPayment;
diff --git a/sandbox/travelsample/payment-contribution/src/payment/creditcard/ws/impl/CreditCardPaymentWSImpl.java b/sandbox/travelsample/payment-contribution/src/payment/creditcard/ws/impl/CreditCardPaymentWSImpl.java
index b0fd37f6ea..f0c61cd14d 100644
--- a/sandbox/travelsample/payment-contribution/src/payment/creditcard/ws/impl/CreditCardPaymentWSImpl.java
+++ b/sandbox/travelsample/payment-contribution/src/payment/creditcard/ws/impl/CreditCardPaymentWSImpl.java
@@ -31,6 +31,17 @@ import payment.creditcard.CreditCardPayment;
public class CreditCardPaymentWSImpl implements CreditCardPayment {
public String authorize(CreditCardDetailsType creditCard, float amount) {
+ if (creditCard != null){
+ System.out.println("Checking card: name = " +
+ creditCard.getCardOwner().getName() +
+ " number = " +
+ creditCard.getCreditCardNumber() +
+ " for amount " +
+ amount);
+ } else {
+ System.out.println("Checking card is null");
+ }
+
return "OK";
}