File tree Expand file tree Collapse file tree 4 files changed +5
-12
lines changed Expand file tree Collapse file tree 4 files changed +5
-12
lines changed Original file line number Diff line number Diff line change 32
32
<form action =" POST" action =" /process/payment" >
33
33
<input type =" hidden" name =" transition_id" value =" {{ $transactionId } }" />
34
34
<input type =" hidden" name =" amount" value =" {{ $amount } }" />
35
- <input type =" hidden" name =" notify_url" value =" {{ $notifyUrl } }" />
36
35
<input type =" submit" name =" status" value =" {{ $label_success } }" />
37
36
<input type =" submit" name =" status" value =" {{ $label_denied } }" />
38
37
</form >
Original file line number Diff line number Diff line change @@ -14,14 +14,12 @@ public function __invoke(Request $request)
14
14
'transaction_id ' => 'required ' ,
15
15
'description ' => 'required ' ,
16
16
'amount ' => 'required|numeric ' ,
17
- 'notify_url ' => 'required|url ' ,
18
17
]);
19
18
20
19
return view ('omonipay-offline-dummy::payment ' , [
21
20
'transactionId ' => $ request ->input ('transaction_id ' ),
22
21
'description ' => $ request ->input ('description ' ),
23
22
'amount ' => $ request ->input ('amount ' ),
24
- 'notifyUrl ' => $ request ->input ('notify_url ' ),
25
23
'label_success ' => App::STATUS_SUCCESS ,
26
24
'label_denied ' => App::STATUS_DENIED ,
27
25
]);
Original file line number Diff line number Diff line change @@ -38,13 +38,11 @@ public function getData()
38
38
'transactionId '
39
39
);
40
40
41
- $ data = [];
42
- $ data ['notify_url ' ] = $ this ->getNotifyUrl ();
43
- $ data ['transaction_id ' ] = $ this ->getTransactionId ();
44
- $ data ['amount ' ] = $ this ->getAmount ();
45
- $ data ['description ' ] = $ this ->getDescription ();
46
-
47
- return $ data ;
41
+ return [
42
+ 'transaction_id ' => $ this ->getTransactionId (),
43
+ 'amount ' => $ this ->getAmount (),
44
+ 'description ' => $ this ->getDescription (),
45
+ ];
48
46
}
49
47
50
48
public function sendData ($ data )
Original file line number Diff line number Diff line change @@ -26,15 +26,13 @@ public function testPurchase()
26
26
'amount ' => '12.00 ' ,
27
27
'description ' => 'Test purchase ' ,
28
28
'transactionId ' => 1 ,
29
- 'notifyUrl ' => 'http://localhost:8080/gateway/notify ' ,
30
29
]
31
30
)->send ();
32
31
33
32
$ responseHttp = $ this ->postJson ($ response ->getRedirectUrl (), [
34
33
'transaction_id ' => $ response ->getData ()['transaction_id ' ],
35
34
'amount ' => $ response ->getData ()['amount ' ],
36
35
'description ' => $ response ->getData ()['description ' ],
37
- 'notify_url ' => $ response ->getData ()['notify_url ' ],
38
36
])->assertStatus (200 )
39
37
->assertSee ('<form action="POST" action="/process/payment"> ' , false );
40
38
}
You can’t perform that action at this time.
0 commit comments