Skip to content

Add Payment Element integration documentation#11225

Open
youssef-al-mostafa wants to merge 2 commits into
laravel:13.xfrom
youssef-al-mostafa:add-payment-element-docs
Open

Add Payment Element integration documentation#11225
youssef-al-mostafa wants to merge 2 commits into
laravel:13.xfrom
youssef-al-mostafa:add-payment-element-docs

Conversation

@youssef-al-mostafa

Copy link
Copy Markdown

Closes laravel/cashier-stripe#1541

The current documentation only covers the legacy Card Element which Stripe
now marks as "Legacy". This PR adds a new "Using the Payment Element" section
covering the three main use cases:

  • Subscriptions (Setup Intent flow)
  • Single charges (Payment Intent flow)
  • Updating the default payment method

The legacy Card Element docs are kept intact for backward compatibility.

@taylorotwell

Copy link
Copy Markdown
Member

So does this leave the old legacy stuff in the docs as well?

@youssef-al-mostafa

Copy link
Copy Markdown
Author

Yes, I kept the old Card Element docs in place since a lot of existing apps still use it.
Added the Payment Element as a new section below it so new projects have a modern reference without breaking anything for current users.
Happy to add a small deprecation note to the old section pointing to the new one if you'd prefer that approach.

@taylorotwell

Copy link
Copy Markdown
Member

Can you fix the styling to make it match the rest of the docs?

@taylorotwell taylorotwell marked this pull request as draft June 10, 2026 14:44
@youssef-al-mostafa youssef-al-mostafa marked this pull request as ready for review June 11, 2026 06:48
@youssef-al-mostafa

Copy link
Copy Markdown
Author

Updated formatting and prose style to match the existing docs. Ready for review.

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.

Payment Element integration documentation

3 participants