Showing
1 changed file
with
3 additions
and
3 deletions
| ... | @@ -80,7 +80,7 @@ class ApplePayment implements PaymentInterface | ... | @@ -80,7 +80,7 @@ class ApplePayment implements PaymentInterface |
| 80 | } | 80 | } |
| 81 | */ | 81 | */ |
| 82 | 82 | ||
| 83 | - $signedTransactionInfoString = $responseBodyPayload['data']['signedTransactionInfo']; | 83 | + $signedTransactionInfoString = $responseBodyPayload->data->signedTransactionInfo; |
| 84 | $components = explode('.',$signedTransactionInfoString); | 84 | $components = explode('.',$signedTransactionInfoString); |
| 85 | $header = json_decode(base64_decode($components[0]),true); | 85 | $header = json_decode(base64_decode($components[0]),true); |
| 86 | if (count($components) < 3){ | 86 | if (count($components) < 3){ |
| ... | @@ -105,7 +105,7 @@ class ApplePayment implements PaymentInterface | ... | @@ -105,7 +105,7 @@ class ApplePayment implements PaymentInterface |
| 105 | "signedDate": 1671451705700 | 105 | "signedDate": 1671451705700 |
| 106 | "environment": "Sandbox" | 106 | "environment": "Sandbox" |
| 107 | }*/ | 107 | }*/ |
| 108 | - $signedRenewalInfoString = $responseBodyPayload['data']['signedRenewalInfo']; | 108 | + $signedRenewalInfoString = $responseBodyPayload->data->signedRenewalInfo; |
| 109 | $components = explode('.',$signedRenewalInfoString); | 109 | $components = explode('.',$signedRenewalInfoString); |
| 110 | $header = json_decode(base64_decode($components[0]),true); | 110 | $header = json_decode(base64_decode($components[0]),true); |
| 111 | if (count($components) < 3){ | 111 | if (count($components) < 3){ |
| ... | @@ -155,7 +155,7 @@ class ApplePayment implements PaymentInterface | ... | @@ -155,7 +155,7 @@ class ApplePayment implements PaymentInterface |
| 155 | 155 | ||
| 156 | try{ | 156 | try{ |
| 157 | $decode = JWT::decode($string, new Key($public_key, "ES256")); | 157 | $decode = JWT::decode($string, new Key($public_key, "ES256")); |
| 158 | - return (array)$decode; | 158 | + return $decode; |
| 159 | }catch (SignatureInvalidException $exception){ | 159 | }catch (SignatureInvalidException $exception){ |
| 160 | Log::error("Signature Invalid!"); | 160 | Log::error("Signature Invalid!"); |
| 161 | return false; | 161 | return false; | ... | ... |
-
Please register or login to post a comment