Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix card expiration date format for Pagar.me Gateway #3583

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ccarruitero
Copy link
Contributor

fix #2534

$ rake test TEST=test/unit/gateways/pagarme_test.rb 
Started
................
Finished in 0.028124156 seconds.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
16 tests, 119 assertions, 0 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
100% passed
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
568.91 tests/s, 4231.24 assertions/s

$ rake test TEST=test/remote/gateways/remote_pagarme_test.rb 
Started
......F
=======================================================================================================================================================================================
     148: 
     149:     response = gateway.purchase(@amount, @credit_card, @options)
     150:     assert_failure response
  => 151:     assert_match %r{401 Authorization Required}, response.message
     152:   end
     153: 
     154:   def test_transcript_scrubbing
/home/pavle/tmp/active_merchant/test/remote/gateways/remote_pagarme_test.rb:151:in `test_invalid_login'
Failure: test_invalid_login(RemotePagarmeTest):
  </401 Authorization Required/> was expected to be =~
  <"Invalid environment">.
=======================================================================================================================================================================================
........
Finished in 16.44644862 seconds.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
15 tests, 46 assertions, 1 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
93.3333% passed
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
0.91 tests/s, 2.80 assertions/s

Failing in remote test is unrelated to the change.

Copy link

To provide a cleaner slate for the maintenance of the library, this PR/Issue is being labeled stale after 60 days without activity. It will be closed in 14 days unless you comment with an update regarding its applicability to the current build. Thank you!

@github-actions github-actions bot added the Stale label Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pagar.me gateway: transactions are failing due to invalid card_expiration_date format
1 participant