To initialize the payment gateway you will need to pass the merchant interface you want to use
First, initialize your payment merchant gateway
$gateway = new PayStack("PAYMENT_PRIVATE_KEY");
Calling Merchant::getInstance
will return instances of Bank
, Customers
, and Processor as Payment
which can then be used to access individual class instances $merchant->bank->foo()
$merchant = Merchant::getInstance($gateway);
Initialize with payment instance
$payment = Merchant::getPaymentInstance($gateway);
Initialize with customer instance
$customer = Merchant::getCustomerInstance($gateway);
Initialize with a bank instance
$bank = Merchant::getBankInstance($gateway);