mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Show funding source as payment method
This commit is contained in:
parent
43a5b759f2
commit
f7323210f0
4 changed files with 61 additions and 11 deletions
|
@ -59,7 +59,10 @@ class WcGatewayTest extends TestCase
|
|||
$this->environment = Mockery::mock(Environment::class);
|
||||
$this->paymentTokenRepository = Mockery::mock(PaymentTokenRepository::class);
|
||||
$this->logger = Mockery::mock(LoggerInterface::class);
|
||||
$this->funding_source_renderer = new FundingSourceRenderer($this->settings);
|
||||
$this->funding_source_renderer = new FundingSourceRenderer(
|
||||
$this->settings,
|
||||
['venmo' => 'Venmo', 'paylater' => 'Pay Later', 'blik' => 'BLIK']
|
||||
);
|
||||
$this->apiShopCountry = 'DE';
|
||||
|
||||
$this->onboardingState->shouldReceive('current_state')->andReturn(State::STATE_ONBOARDED);
|
||||
|
@ -271,6 +274,8 @@ class WcGatewayTest extends TestCase
|
|||
return [
|
||||
[null, 'PayPal', 'Pay via PayPal.'],
|
||||
['venmo', 'Venmo', 'Pay via Venmo.'],
|
||||
['paylater', 'Pay Later', 'Pay via Pay Later.'],
|
||||
['blik', 'BLIK (via PayPal)', 'Pay via BLIK.'],
|
||||
['qwerty', 'PayPal', 'Pay via PayPal.'],
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue