Skip to content

Integrated payment #6754

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

Draft
wants to merge 9 commits into
base: edge
Choose a base branch
from
Draft

Conversation

andrey-utkin
Copy link
Contributor

Hi!

This is me sharing how I implemented paid automated signup.

Seems that ideally this would become a system-wide extension rather than core part, but I am not sure if it will work.

I would highly appreciate criticism around security. First time writing such code, so am worried.

Changes proposed in this pull request:

  • implement out of the box paid signup

How to test the feature manually:

  1. get Stripe account
  2. put some Stripe test secret key and price ID into config.php
  3. on Login page, click "Buy an account" and follow through the process. Use test payment credentials as documented at Stripe.

Pull request checklist:

  • clear commit messages
  • code manually tested
  • unit tests written (optional if too hard)
  • documentation updated

Additional information can be found in the documentation.

@Alkarex
Copy link
Member

Alkarex commented Oct 29, 2024

Hello and thanks for the draft. Do you believe this could be contained in a FreshRSS extension, possibly after adding more hooks?

}

public function issueTicketAction(): void {
require '../../vendor/autoload.php';
Copy link
Contributor

Choose a reason for hiding this comment

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

suggestion : Hi, Shouldn't the call for autoload be made in such a way as to benefit the whole project

Comment on lines +71 to +77
'customer' => array(
'buy' => array(
'_' => 'Buy an account',
'ask' => 'Buy an account?',
'title' => 'Buy an account',
),
),
Copy link
Contributor

Choose a reason for hiding this comment

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

please, use [ ] for arrays

@andrey-utkin
Copy link
Contributor Author

Hello and thanks for the draft. Do you believe this could be contained in a FreshRSS extension, possibly after adding more hooks?

Let's see later.
Right now I am refining this feature by enabling embedded Stripe UI, which complicates things more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy