File tree Expand file tree Collapse file tree 6 files changed +10
-11
lines changed Expand file tree Collapse file tree 6 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 22
33namespace Vrajroham \LaravelBitpay \Commands ;
44
5- use BitPayKeyUtils \KeyHelper \PrivateKey ;
6- use Illuminate \Console \Command ;
75use Bitpay \Client \BitpayException ;
6+ use BitPayKeyUtils \KeyHelper \PrivateKey ;
87use GuzzleHttp \Client ;
8+ use Illuminate \Console \Command ;
99use Vrajroham \LaravelBitpay \Traits \CreateKeypairTrait ;
1010
1111class CreateKeypair extends Command
@@ -146,12 +146,12 @@ public function pairWithServerAndCreateToken()
146146 try {
147147 $ this ->pairingCodeLabel = config ('app.name ' ).'_BitPay_Client ' ;
148148 $ postData = [
149- 'id ' => (string ) $ this ->sin ,
150- 'label ' => $ this ->pairingCodeLabel ,
149+ 'id ' => (string ) $ this ->sin ,
150+ 'label ' => $ this ->pairingCodeLabel ,
151151 'facade ' => 'merchant ' ,
152152 ];
153153 $ response = $ bitpayClient ->post ('/tokens ' , [
154- 'json ' => $ postData ,
154+ 'json ' => $ postData ,
155155 'headers ' => [
156156 'x-accept-version: 2.0.0 ' ,
157157 'Content-Type: application/json ' ,
Original file line number Diff line number Diff line change 44
55use Illuminate \Foundation \Events \Dispatchable ;
66use Illuminate \Queue \SerializesModels ;
7- use Illuminate \Support \Facades \Log ;
87
98class BitpayWebhookReceived
109{
Original file line number Diff line number Diff line change @@ -14,9 +14,9 @@ class VerifyWebhookSignature
1414 * @param \Illuminate\Http\Request $request
1515 * @param \Closure $next
1616 *
17- * @return \Illuminate\Http\Response
18- *
1917 * @throws \Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException
18+ *
19+ * @return \Illuminate\Http\Response
2020 */
2121 public function handle ($ request , Closure $ next )
2222 {
Original file line number Diff line number Diff line change 55use BitPaySDK \Model \Bill \Item ;
66use BitPaySDK \Model \Currency ;
77use BitPaySDK \Model \Invoice \Buyer ;
8- use Vrajroham \LaravelBitpay \Traits \LaravelBitpayTrait ;
98use BitPaySDK \Model \Invoice \Invoice ;
9+ use Vrajroham \LaravelBitpay \Traits \LaravelBitpayTrait ;
1010
1111class LaravelBitpay
1212{
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ public function validateAndLoadConfig()
1414 throw InvalidConfigurationException::invalidNetworkName ();
1515 }
1616
17- if (! class_exists ($ config ['key_storage ' ])) {
17+ if (!class_exists ($ config ['key_storage ' ])) {
1818 throw InvalidConfigurationException::invalidStorageClass ();
1919 }
2020
Original file line number Diff line number Diff line change 33namespace Vrajroham \LaravelBitpay \Traits ;
44
55use BitPaySDK \Client as BitpayClient ;
6- use BitPaySDK \Tokens ;
76use BitPaySDK \Env ;
7+ use BitPaySDK \Tokens ;
88use Vrajroham \LaravelBitpay \Exceptions \InvalidConfigurationException ;
99
1010trait LaravelBitpayTrait
You can’t perform that action at this time.
0 commit comments