PHP Classes

File: docs/ACCOUNT.md

Recommend this page to a friend!
  Classes of Ujah Chigozie peter   PHP Payment Gateway Library   docs/ACCOUNT.md   Download  
File: docs/ACCOUNT.md
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: PHP Payment Gateway Library
Process payments with multiple gateways
Author: By
Last change:
Date: 1 year ago
Size: 1,033 bytes
 

Contents

Class file image Download

CUSTOMER ACCOUNT

If you are using getInstance then you must access the customer instance by using $merchant->customer-> else if you are working with getCustomerInstance you can directly call the customer class method.

Initialize customer account with an email address or customer code

$account = $customer->withAccount('CUS_jbf8bq0kbkrk3sc');

Create a new customer account and assign it to the current session

$result = $account->create(['array']);

Update the current session customer account

$result = $account->update(['array']);

Verify current session customer account

$result = $account->verify(['array']);

Flag current session customer account

$result = $account->flag(PayStack::FLAG_DENY);

Refresh the current session customer account

$result = $account->refresh();

Get property by key name using get method or directly access the object property by name

$email = $account->get('email');
// OR
$email = $account->email;