summaryrefslogtreecommitdiffstats
path: root/sandbox/travelsample/payment-contribution/src/payment
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2008-12-08 14:22:21 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2008-12-08 14:22:21 +0000
commiteb86a871567d9a370eb63ae1f4689e389ee99584 (patch)
treef9d4a969aa9d9366456247911e7438a3b827a0c3 /sandbox/travelsample/payment-contribution/src/payment
parentbbda2f487281f9eb119900a675db721a24b2a0be (diff)
The BPEL payment process now successfully calls the payment service
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@724355 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sandbox/travelsample/payment-contribution/src/payment')
-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";
}