Skip to content

Commit

Permalink
Add option to use AdaptivePayments through facade.
Browse files Browse the repository at this point in the history
  • Loading branch information
srmklive authored Jul 11, 2016
1 parent d9ef9db commit 70f5279
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/PayPalFacadeAccessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ public static function getProvider()
*/
public static function setProvider($option = '')
{
self::$provider = new ExpressCheckout;
// Set default provider.
if (empty($option) || ($option != 'adaptive_payments') || ($option == 'express_checkout'))
self::$provider = new ExpressCheckout;
else
self::$provider = new AdaptivePayments;

return self::getProvider();
}
Expand Down

0 comments on commit 70f5279

Please sign in to comment.