Skip to content

Commit

Permalink
Merge pull request #97 from Shoperti/fix-sponsor-id
Browse files Browse the repository at this point in the history
Cast sponsor id to int
  • Loading branch information
joecohens authored Oct 12, 2017
2 parents 18306f8 + 5e7ff13 commit 37d0b87
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 37d0b87

Please sign in to comment.