Subversion Repositories SmartDukaan

Rev

Rev 2159 | Rev 2534 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2159 Rev 2199
Line 148... Line 148...
148
	public double getAmount() {
148
	public double getAmount() {
149
		return amount;
149
		return amount;
150
	}
150
	}
151
 
151
 
152
	public void setPaymentOption(Payment payment) {
152
	public void setPaymentOption(Payment payment) {
-
 
153
		this.paymentOption = null;
153
		for(Attribute attr : payment.getAttributes()){
154
		for(Attribute attr : payment.getAttributes()){
154
			if(attr.getName().equals(IPaymentService.PAYMENT_METHOD))
155
			if(attr.getName().equals(IPaymentService.PAYMENT_METHOD))
155
				this.paymentOption = attr.getValue();
156
				this.paymentOption = attr.getValue();
156
		}
157
		}
157
	}
158
	}