← All changes
|
src/PaymentGateways/PayPalCommerce/PayPalCheckoutSdk/ProcessorResponseError.php
+3
-1
4.16.1
→
4.17.0
View file →
| @@ -13,8 +13,10 @@ | ||
| 13 | 13 | class ProcessorResponseError |
| 14 | 14 | { |
| 15 | 15 | /** |
| 16 | 16 | * This function decode the error code from PayPal. |
| 17 | + * | |
| 18 | + * @since 4.16.9 Read the CVV message with the CVV code. | |
| 17 | 19 | * @since 3.2.0 |
| 18 | 20 | * @param \stdClass $processorResponse |
| 19 | 21 | */ |
| 20 | 22 | public static function getError(\stdClass $processorResponse): string |
| @@ -44,9 +46,9 @@ | ||
| 44 | 46 | if ( |
| 45 | 47 | property_exists($processorResponse, 'cvv_code') |
| 46 | 48 | && array_key_exists($cvvCode, $errorCode['cvvCode']) |
| 47 | 49 | ) { |
| 48 | - $errors[] = $errorCode['cvvCode'][$avsCode]; | |
| 50 | + $errors[] = $errorCode['cvvCode'][$cvvCode]; | |
| 49 | 51 | } |
| 50 | 52 | |
| 51 | 53 | if ( |
| 52 | 54 | property_exists($processorResponse, 'response_code') |