Skip to content

Add retrieve payment methods#2

Merged
macaugh merged 6 commits intomasterfrom
add-retrieve-payment-methods
Feb 28, 2025
Merged

Add retrieve payment methods#2
macaugh merged 6 commits intomasterfrom
add-retrieve-payment-methods

Conversation

@macaugh
Copy link

@macaugh macaugh commented Feb 26, 2025

I ended up needing to create a new mocked object to match with stripes implementation. This change mocks the payment method object and fills in the card details so that the hash can be accessed by our serializer. We needed the full payment method object to be returned to have the object in our serializer.

To test:

Bundle install
bundle rspec spec/instance.rb

This Branch was tested against our own external test suite and passed.

@hhoopes
Copy link

hhoopes commented Feb 26, 2025

since we're basically building this to fit our needs, could you include in the PR an example of how it's used and it working successfully? it's a little hard for me to visualize otherwise.

@hhoopes hhoopes self-assigned this Feb 27, 2025
@macaugh macaugh marked this pull request as ready for review February 27, 2025 16:54
Copy link

@hhoopes hhoopes left a comment

Choose a reason for hiding this comment

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

Seeing a use case of how this is working in our specs might be nice, but no reason not to approve

@macaugh macaugh merged commit 7c250ea into master Feb 28, 2025
3 checks passed
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.

2 participants