[iPayment] Set variable mark-up amount based on order amount when authorizing

  • Updated

Using b1UP it's possible to set a variable mark-up based on the authorization amount when performing a manual authorization in SAP.

 

The Requirements 

For this implementation you will need to create the following:
- B1 Validation
- Universal Function (Macro)

 

 The Setup

Below we have a sample of how to achieve this setup, and configure it to suit your needs.

Start by going to the iPayment authorization screen, right-clicking and selecting the option as shown below.
You can also skip this step and navigate to the B1 Validation Configuration screen directly.

mceclip3.png

 

Once you're at the B1 Validation Configuration screen, we start by setting up a B1 Validation to trigger a UF when the 'Amount to Authorize' field on the iPayment Authorization screen is validated.

mceclip1.png

Then we set up a Universal Function to perform our checking logic.
It's checking the value of the 'Amount to Authorize' field and setting the 'Markup value' field to a static value based on the checks.

Below you can see an example, but all of the static numbers can be configured to suit your specific use-case. You can also add however many cases you need based on your scenario.

mceclip2.png

 

The result

When you edit the 'Amount to Authorize' field, the markup amount will automatically be adjusted based on your checking logic.

Was this article helpful?

0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.