Skip to content

Commit

Permalink
Cast sponsor id to int
Browse files Browse the repository at this point in the history
  • Loading branch information
joecohens committed Oct 12, 2017
1 parent 18306f8 commit 5e7ff13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Gateways/MercadoPago/Charges.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Gateways/MercadoPagoBasic/Charges.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 5e7ff13

Please sign in to comment.