I'm not sure what you mean by integrating MasterCard? Can you send me a link to the SDK you are referring to? Usually MasterCard (as well as other credit cards) are integrated with a card processing service like Paypal or Authorize.net. Our eCart tool can be used to write the code for most popular payment gateways and integrate into your php site.