-
Notifications
You must be signed in to change notification settings - Fork 248
Add Pay Later Button #1455
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
base: main
Are you sure you want to change the base?
Add Pay Later Button #1455
Conversation
| <Switch | ||
| android:id="@+id/offer_pay_later_switch" | ||
| android:layout_width="match_parent" | ||
| android:layout_height="@dimen/margin_40" | ||
| android:visibility="gone" | ||
| android:text="@string/paypal_offer_pay_later" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be better to remove this Switch entirely? It doesn't look like it's ever set to visible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. I suggest keeping this feature, as it’s still used in other places. We can add a feature switch to control the visibility of the second button I implemented, as well as this switch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think with your current changes we're not able to test all of the combinations of one time checkout, billing agreement, pay later enabled, pay later disabled.
Since we're adding a dedicated button for pay later, can we add one for one time checkout and separate one for launching the billing agreement flow?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After reviewing the codebase, Billing Agreements don’t currently support Pay Later. The first two buttons handle (1) single payments and (2) billing agreements, both with payLater = false. The newly added button handles single payments with payLater = true. This setup fulfills our current business needs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it. So it sounds like the this Switch is still not used. Can we remove it as a part of this PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed
Thank you for your contribution to Braintree.
Summary of changes
Checklist
Screenshot
Screen_recording_20251021_143806.webm
Authors