Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Staging #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ use Illuminate\Http\Request;

use App\Http\Requests;
use App\Http\Controllers\Controller;
use PayWithBank3D;
use Parkwayprojects\PayWithBank3D\PayWithBank3DFacade;

class PaymentController extends Controller
{
Expand All @@ -137,7 +137,7 @@ class PaymentController extends Controller
*/
public function redirectToGateway()
{
return PayWithBank3D::setUrl()->redirectNow();
return PayWithBank3DFacade::setUrl()->redirectNow();
}

/**
Expand All @@ -146,7 +146,7 @@ class PaymentController extends Controller
*/
public function redirectUrl()
{
return PayWithBank3D::getUrl();
return PayWithBank3DFacade::getUrl();
}

/**
Expand All @@ -155,7 +155,7 @@ class PaymentController extends Controller
*/
public function handleGatewayCallback()
{
$paymentDetails = PayWithBank3D::getData();
$paymentDetails = PayWithBank3DFacade::getData();

dd($paymentDetails);
// Now you have the payment details,
Expand All @@ -172,7 +172,7 @@ Let me explain the fluent methods this package provides a bit here.
* Payment Page. I abstracted all of it, so you don't have to worry about that.
* Just eat your cookies while coding!
*/
PayWithBank3D::setUrl()->redirectNow();
PayWithBank3DFacade::setUrl()->redirectNow();

/**
* SetUrl can also accept an array instead of a request object and you are good to go, it will be in this format
Expand All @@ -198,13 +198,13 @@ PayWithBank3D::setUrl()->redirectNow();
/**
* This fluent method does all the dirty work of verifying that the just concluded transaction was actually valid,
*/
PayWithBank3D::getData();
PayWithBank3DFacade::getData();

/**
* This method gets the return the redirect url in the case your frontend is detached from your backend
* @returns array
*/
PayWithBank3D::setUrl()->getUrl();
PayWithBank3DFacade::setUrl()->getUrl();

```

Expand All @@ -216,7 +216,7 @@ A sample form will look like so:
<div class="col-md-8 col-md-offset-2">
<p>
<div>
Infinity Biscuit
Infinity Biscuits
₦ 5,980
</div>
</p>
Expand Down