Skip to content

Conversation

@rikterbeek
Copy link
Contributor

@rikterbeek rikterbeek commented Oct 19, 2018

Description

Add helper to easily provide card data as well added a new constructor to set required fields for better sample code and easier integration.

Tested scenarios

Fixed issue:

@coveralls
Copy link

coveralls commented Oct 19, 2018

Coverage Status

Coverage decreased (-0.0008%) to 27.216% when pulling 9841e84 on feature/PW-675 into 804856c on develop.

paymentsRequest.putPaymentMethodItem("expiryYear", "2018");
paymentsRequest.putPaymentMethodItem("holderName", "John Smith");
paymentsRequest.putPaymentMethodItem("cvc", "737");
paymentsRequest.addCardData("4111111111111111", "expiryMonth", "2018", "737", "John Smith");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"expiryMonth" should be "08" instead?
should we also update to "10", "2020"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Aleffio , yes of course, will change it.

@kexiaoyang
Copy link

kexiaoyang commented Oct 19, 2018 via email

@rikterbeek rikterbeek merged commit 15783b1 into develop Oct 19, 2018
@rikterbeek rikterbeek deleted the feature/PW-675 branch October 19, 2018 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants