diff --git a/src/Gateways/MercadoPago/Charges.php b/src/Gateways/MercadoPago/Charges.php index 4615e8e..ab1a020 100644 --- a/src/Gateways/MercadoPago/Charges.php +++ b/src/Gateways/MercadoPago/Charges.php @@ -155,7 +155,7 @@ protected function addCustomer(array $params, array $options) protected function addAdditionData(array $params, array $options) { if (array_key_exists('application', $options)) { - $params['sponsor_id'] = $options['application']; + $params['sponsor_id'] = (int) $options['application']; } if (array_key_exists('notify_url', $options)) { diff --git a/src/Gateways/MercadoPagoBasic/Charges.php b/src/Gateways/MercadoPagoBasic/Charges.php index b54dc10..a2b090c 100644 --- a/src/Gateways/MercadoPagoBasic/Charges.php +++ b/src/Gateways/MercadoPagoBasic/Charges.php @@ -184,7 +184,7 @@ protected function addCustomer(array $params, array $options) protected function addAdditionData(array $params, array $options) { if (array_key_exists('application', $options)) { - $params['sponsor_id'] = $options['application']; + $params['sponsor_id'] = (int) $options['application']; } if (array_key_exists('notify_url', $options)) {