Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
victormendoza96 committed Aug 1, 2024
1 parent 0f507dd commit 6082d66
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion app/Http/Controllers/WebpayPlusMallController.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function refund(Request $request)
{
try {
$req = $request->except('_token');
$resp = $this->mallTransaction->refund($req["token"], $req["buyOrder"], $req["childComerceCode"], $req["amount"]);
$resp = $this->mallTransaction->refund($req["token"], $req["buyOrder"], $req["childCommerceCode"], $req["amount"]);
} catch (\Exception $e) {
$resp = array(
'msg' => $e->getMessage(),
Expand Down
6 changes: 3 additions & 3 deletions app/Http/Controllers/WebpayPlusMallDeferredController.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function commit(Request $request)
if ($request->exists("TBK_TOKEN") && $request->exists("token_ws")) {
$view = 'webpay-mall-deferred.error';
}
//Pago abortadoas
//Pago abortados
elseif ($request->exists("TBK_TOKEN")) {
$view = 'webpay-mall-deferred.error';
}
Expand All @@ -83,7 +83,7 @@ public function refund(Request $request)
{
try {
$req = $request->except('_token');
$resp = $this->mallTransaction->refund($req["token"], $req["buyOrder"], $req["childComerceCode"], $req["amount"]);
$resp = $this->mallTransaction->refund($req["token"], $req["buyOrder"], $req["childCommerceCode"], $req["amount"]);
} catch (\Exception $e) {
$resp = array(
'msg' => $e->getMessage(),
Expand All @@ -98,7 +98,7 @@ public function capture(Request $request)
{
try {
$req = $request->except('_token');
$resp = $this->mallTransaction->capture($req["childComerceCode"], $req["token"], $req["buyOrder"], $req["authorizationCode"], $req["amount"]);
$resp = $this->mallTransaction->capture($req["childCommerceCode"], $req["token"], $req["buyOrder"], $req["authorizationCode"], $req["amount"]);
} catch (\Exception $e) {
$resp = array(
'msg' => $e->getMessage(),
Expand Down
4 changes: 2 additions & 2 deletions resources/views/webpay-mall-deferred/capture.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
<div class="input-container">
<label for="amount" class="tbk-label">Monto a reembolsar:</label>
<input type="text" name="amount" class="tbk-input-text" value={{ $resp->capturedAmount }}>
<input type="hidden" name="childComerceCode" class="tbk-input-text"
value={{ $request['childComerceCode'] }}>
<input type="hidden" name="childCommerceCode" class="tbk-input-text"
value={{ $request['childCommerceCode'] }}>
<input type="hidden" name="buyOrder" class="tbk-input-text" value={{ $request['buyOrder'] }}>
<input type="hidden" name="token" class="tbk-input-text" value={{ $request['token'] }}>
</div>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/webpay-mall-deferred/commit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
<div class="input-container">
<label for="amount" class="tbk-label">Monto a capturar:</label>
<input type="text" name="amount" class="tbk-input-text" value={{ $detail->amount }}>
<input type="hidden" name="childComerceCode" class="tbk-input-text"
<input type="hidden" name="childCommerceCode" class="tbk-input-text"
value={{ $detail->commerceCode }}>
<input type="hidden" name="authorizationCode" class="tbk-input-text"
value={{ $detail->authorizationCode }}>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/webpay-mall-deferred/refund.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
</a> podrás ver
mayor información sobre las condiciones y casos para anular o reversar transacciones.</p>
<x-snippet>
$resp = $mallTransaction->refund($token, $buyOrder, $childComerceCode,
$resp = $mallTransaction->refund($token, $buyOrder, $childCommerceCode,
$amount);
</x-snippet>

Expand Down
2 changes: 1 addition & 1 deletion resources/views/webpay-mall-deferred/status.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<h2>Paso 1 - Petición:</h2>
<p class="mb-32">
Para realizar la consulta, necesitas el token de la transacción de la cual deseas obtener el estado. Utiliza
este token para realizar una llamada a WebpayPlus.Transaction.
este token para realizar una llamada a WebpayPlus.MallTransaction.
</p>

<x-snippet> $resp = $mallTransaction->status($token);</x-snippet>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/webpay-mall/commit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<div class="input-container">
<label for="amount" class="tbk-label">Monto a reembolsar:</label>
<input type="text" name="amount" class="tbk-input-text" value={{ $detail->amount }}>
<input type="hidden" name="childComerceCode" class="tbk-input-text"
<input type="hidden" name="childCommerceCode" class="tbk-input-text"
value={{ $detail->commerceCode }}>
<input type="hidden" name="buyOrder" class="tbk-input-text" value={{ $detail->buyOrder }}>
<input type="hidden" name="token" class="tbk-input-text" value={{ $token }}>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/webpay-mall/refund.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
</a> podrás ver
mayor información sobre las condiciones y casos para anular o reversar transacciones.</p>
<x-snippet>
$resp = $mallTransaction->refund($token, $buyOrder, $childComerceCode,
$resp = $mallTransaction->refund($token, $buyOrder, $childCommerceCode,
$amount);
</x-snippet>

Expand Down
2 changes: 1 addition & 1 deletion resources/views/webpay-mall/status.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<h2>Paso 1 - Petición:</h2>
<p class="mb-32">
Para realizar la consulta, necesitas el token de la transacción de la cual deseas obtener el estado. Utiliza
este token para realizar una llamada a WebpayPlus.Transaction.
este token para realizar una llamada a WebpayPlus.MallTransaction.
</p>

<x-snippet> $resp = $mallTransaction->status($token);</x-snippet>
Expand Down

0 comments on commit 6082d66

Please sign in to comment.