Skip to content

Commit

Permalink
Merge pull request #16 from levizwannah/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
levizwannah authored Aug 28, 2024
2 parents a8c6454 + 7bec113 commit 3c715b0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
6 changes: 6 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,12 @@ $btb->amount(100)
->resultUrl('https://my.url/path/to/result')
->timeoutUrl('https://my.url/path/to/timeout');

# if in the same organization use
$btb->amount(100)
->toSelf() // accepts an optional short code param for sub-organizations
->resultUrl('https://my.url/path/to/result')
->timeoutUrl('https://my.url/path/to/timeout');

# optional
$btb->remarks('optional remarks') // optional
->requester('0712345678'); // optional - the customer on
Expand Down
9 changes: 9 additions & 0 deletions src/Helpers/BusinessToBulk.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,15 @@ public function receiver($number)
return $this;
}

public function toSelf(string $code = null)
{
$code ??= $this->code;
$this->receiver = $code;
$this->type = Constant::BUSINESS_MMF_UTILITY;

return $this;
}

/**
* Sets the customer phone number on behalf of whom you are paying.
* Accepts 07xxxxxxxx, +2547xxxxxxxxx, or 2547xxxxxxxxx
Expand Down
2 changes: 1 addition & 1 deletion src/Helpers/Constant.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ private function __construct(){}

// Business To Bulk
const BUSINESS_TO_BULK = "BusinessPayToBulk";

const BUSINESS_MMF_UTILITY = "BusinessTransferFromMMFToUtility";
}

?>

0 comments on commit 3c715b0

Please sign in to comment.