@Property
protected float transactionFee = 0.01f;
public String makePaymentMember(String customerId, float amount) {
try {
Customer customer = customerRegistry.getCustomer(customerId);
String status = creditCardPayment.authorize(customer.getCreditCard(), amount + transactionFee);
emailGateway.sendEmail("order@tuscanyscatours.com",
customer.getEmail(),
"Status for your payment",
customer + " >>> Status = " + status);
return status;
} catch (CustomerNotFoundException ex) {
return "Payment failed due to " + ex.getMessage();