-
Notifications
You must be signed in to change notification settings - Fork 195
Using custom credentials
Joel Ibaceta edited this page Apr 9, 2019
·
2 revisions
Now this SDK support additional options for the main methods to interact with entities or api resources using alternative behaviors.
MercadoPago\SDK::setMultipleCredentials(
array(
"Test" => "TEST_ACCESS_TOKEN",
"Production" => "PROD_ACCESS_TOKEN"
)
);
$options = array(
"custom_access_token" => "Test"
);
$payment_status = $payment->save($options);
$payment_status = $payment->save(
"custom_access_token" => "ACESS_TOKEN..."
);
Developer Experience - MercadoPago