MySagePay
Login >

Surcharge XML Example

The below Surcharge XML specifies that for this request all Visa payments will include a 4.25% surcharge and MasterCard payments will include a fixed surcharge of 2.50 in the currency being used.

IMPORTANT NOTE: The line breaks in the below example are included for readability only. No line breaks are needed.
<surcharges> 
	<surcharge>
		<paymentType>VISA</paymentType>
		<percentage>4.25</percentage>
</surcharge> 
 	<surcharge>
		<paymentType>MC</paymentType>
		<fixed>2.50</fixed>
</surcharge> 
</surcharges>