Open DevCEDTeam opened 1 year ago
General overview of how pipelines and auto-deployment can be set up:
Continuous Integration/Continuous Deployment (CI/CD) Pipelines: CI/CD pipelines are commonly used to automate the deployment process. These pipelines consist of a series of stages or steps that build, test, and deploy the application automatically when triggered by changes to the code repository.
Version Control System: Typically, the codebase is stored in a version control system like Git. CI/CD pipelines are often triggered by events such as commits, pull requests, or tags in the version control system.
CI/CD Tools: Various CI/CD tools and platforms are available that integrate with version control systems and enable automatic deployment. Examples include Jenkins, CircleCI, GitLab CI/CD, and GitHub Actions.
Configuration and Scripts: To set up auto-deployment, you'll need to configure the CI/CD tool to run the necessary scripts or commands for building, testing, and deploying the application. These scripts might include commands to install dependencies, run tests, and deploy the application to the target environment.
Deployment Environment: The deployment environment, such as a hosting service or cloud platform, needs to be configured to receive the deployment artifacts and deploy the application automatically. This might involve configuring deployment targets, specifying environment variables, and providing necessary credentials or access keys.
Deployment Triggers: CI/CD pipelines can be configured to automatically trigger deployments based on specific events or conditions. For example, you can set up deployments to occur automatically when changes are pushed to specific branches, tags are created, or pull requests are merged.
It's important to note that the specifics of setting up pipelines and auto-deployment can vary based on the tools, platforms, and configurations used in your specific project. You'll need to refer to the documentation and guides provided by your chosen CI/CD tool and deployment environment to set up the desired auto-deployment workflow.
Chat from Council for Education (director@cfored.com) Contact photo From Stripe Support support-reply@stripe.com on 2023-06-08 12:54 pm Details Headers Plain text Hi Hal,
Thank you for chatting with me earlier about your account and for your patience as we work towards resolving this for you.
As discussed, to better support your inquiry, I'm connecting you with another member of our team who is looking into this and assisting you in a more specialized way. Our team should be in touch with you to give you a proper and timely update on your query and what needs to be done on your side accordingly.
If you'd like to check on the status at any point, please feel free to reply to this email directly and we'll be in touch.
For reference, below you'll also find the transcript of our chat.
Best, Andi
Re: Chat from Council for Education (director@cfored.com) Contact photo From Stripe Support support-reply@stripe.com on 2023-06-09 11:05 am Details Headers Plain text Harold,
The gist you linked to [1] appears to be a similar arrangement to before with the endpoint returning the session ID. Can you clarify if this is a summary you've compiled yourself, or if there's an external resource you're looking at? I do note that last step indicated your choice to redirect server or client side:
If you're having specific issues working through this integration, please let me know the details of this (any failing request IDs [3] or error messages, or unexpected behaviour) and I'd be happy to offer guidance.
Nolan
[1] https://gist.github.com/DevCEDTeam/28f130f30a439b23a15e9407455cd007 [2] https://github.com/stripe-samples/checkout-one-time-payments/blob/main/server/ruby/server.rb [3] https://support.stripe.com/questions/finding-the-id-for-an-api-request
Sure! Here are the updated step-by-step instructions for building and deploying a Sinatra framework with payment processing using Stripe, using Ruby on Rails as the backend framework. The instructions also include the gcloud CLI instructions and sample code. Additionally, I have included the full HTML code for the donor acknowledgement page and the front-end HTML code web form.
Step-by-Step Instructions:
Install Ruby on Rails and set up the development environment:
gem install rails
rails --version
Create a new Ruby on Rails application:
rails new payment_app
cd payment_app
Install the necessary gems for Stripe integration:
Gemfile
in your text editor.Gemfile
:Gemfile
and run the following command to install the gem:bundle install
Set up the Stripe configuration:
config/initializers/stripe.rb
file in your text editor (create the file if it doesn't exist).Add the following code to the file:
'YOUR_PUBLISHABLE_KEY'
and'YOUR_SECRET_KEY'
with your actual Stripe API keys.Create a new controller for payments:
rails generate controller Payments
payments_controller.rb
in theapp/controllers
directory.Update the
payments_controller.rb
file with the following code:Update the
config/routes.rb
file:config/routes.rb
file in your text editor.Create the views for the front-end HTML code web form and the donor acknowledgement page:
donation.html.erb
in theapp/views/payments
directory.donation.html.erb
file.acknowledgement.html.erb
in theapp/views/payments
directory.acknowledgement.html.erb
file.Test the application:
rails server
http://localhost:3000/donation
to access the donation form.Please note that you need to replace
'YOUR_PUBLISHABLE_KEY'
and'YOUR_SECRET_KEY'
in the Stripe configuration with your actual Stripe API keys. Additionally, make sure to update the success and cancel URLs in thecreate
method of thePaymentsController
to match your desired URLs.HTML Code for Donor Acknowledgement Page (acknowledgement.html.erb):
HTML Code for Front-end HTML Code Web Form (donation.html.erb):
Please make sure to replace
'YOUR_PUBLISHABLE_KEY'
in the front-end HTML code web form with your actual Stripe publishable key.I hope this helps! Let me know if you have any further questions.