You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
The Dart programming language offers a great and convenient feature for the case of testing YouCan pay and test cardsn which is the factory constructors.
After exploring the SDK's code, I can see many ways to improve it, for the sake of the Flutter developer that will improve his experience, one of them is offering the test cards as factory constructors, taking as an example:
it would be helpful to use a CardInformation.testCard1() :
factoryCardInformation.testCard1() {
returnCardInformation(
cardHolderName:"SOME TEST NAME HERE",
cardNumber:"4242424242424242",
expireDateYear:"24",
expireDateMonth:"10",
cvv:"112",
);
}
The same thing of other test cards!
and now when using the payWithCard() you can simply call that factory constructor directly in the cardInformation field, without the need of leaving the editor or hardcoding the card values every time.
The text was updated successfully, but these errors were encountered:
Hi,
The Dart programming language offers a great and convenient feature for the case of testing YouCan pay and test cardsn which is the
factory
constructors.After exploring the SDK's code, I can see many ways to improve it, for the sake of the Flutter developer that will improve his experience, one of them is offering the test cards as factory constructors, taking as an example:

it would be helpful to use a
CardInformation.testCard1()
:The same thing of other test cards!
and now when using the
payWithCard()
you can simply call thatfactory
constructor directly in thecardInformation
field, without the need of leaving the editor or hardcoding the card values every time.The text was updated successfully, but these errors were encountered: