I'm new to wso2 esb.I'm creating a proxy service, which will call two end points,
1st service will return the user id and type.
2nd service will return the amount to be paid.
I need to apply some discount on the amount to be paid, based on the type of user.
ex- if user is, Gold Card holder then 20% discount if he is platinum card holder 10% discount like this.
I don't know how to do the arithmetic calculations inside proxy service. Can you please help me in this. Thanks in advance!!