public function CheckoutTest::dataProviderExistingPaymentMethodCardNumber in Commerce Stripe 8
Data provider for card numbers when testing existing payment methods.
Return value
\Generator The data.
File
- tests/
src/ FunctionalJavascript/ CheckoutTest.php, line 429
Class
- CheckoutTest
- Tests checkout with Stripe.
Namespace
Drupal\Tests\commerce_stripe\FunctionalJavascriptCode
public function dataProviderExistingPaymentMethodCardNumber() {
// These can be added, but must go through one authentication approval via
// an on-session payment intent.
(yield [
'4000002500003155',
]);
(yield [
'4000002760003184',
]);
// This card requires authentication for one-time and other on-session
// payments. However, all off-session payments will succeed as if the card
// has been previously set up.
(yield [
'4000003800000446',
]);
}