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

Map to all paymentMethods for consistency of access. #69

Closed
wants to merge 4 commits into from

Conversation

may191
Copy link

@may191 may191 commented Apr 22, 2015

Updating the ability to call $customer->paymentMethods without referencing to the function.

This way it is consistent with other payment method lookups and the documentation online:
https://developers.braintreepayments.com/javascript+php/reference/response/payment-method

Ryan May added 4 commits April 22, 2015 15:21
Updating the ability to call $customer->paymentMethods without referencing to the function.

This way it is consistent with other payment method lookups and the documentation online:
https://developers.braintreepayments.com/javascript+php/reference/response/payment-method
1) Iterating though search results

The documentation does not seem to cover how to iterate through objects. Many developers perform a var_dump(), don't see the object data, and assume they need to then independently lookup each with a find request. This is not true.

2) Finding all customers funding options.

Many developer will want to display to a customer a custom list of funding options. It is not correctly shown in the documentation you must use $customer->paymentMethods() as a function to get all. It is not shown that you can use isDefault() to check if this source is the default. It is also not obvious how to present a consistent label for the field as you loop though.
1) Iterating though search results

The documentation does not seem to cover how to iterate through objects. Many developers perform a var_dump(), don't see the object data, and assume they need to then independently lookup each with a find request. This is not true.

2) Finding all customers funding options.

Many developer will want to display to a customer a custom list of funding options. It is not correctly shown in the documentation you must use $customer->paymentMethods() as a function to get all. It is not shown that you can use isDefault() to check if this source is the default. It is also not obvious how to present a consistent label for the field as you loop though.
1) Iterating though search results

The documentation does not seem to cover how to iterate through objects. Many developers perform a var_dump(), don't see the object data, and assume they need to then independently lookup each with a find request. This is not true.

2) Finding all customers funding options.

Many developers will want to display to a customer a custom list of funding options. It is not correctly shown in the documentation you must use $customer->paymentMethods() as a function to get all. It is not shown that you can use isDefault() to check if this source is the default. It is also not obvious how to present a consistent label for the field as you loop though.
@raymondberg
Copy link

Hi, @may191. We incorporated your suggestion into release 3.1.0. Thank you for your work!

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