Code Monkey home page Code Monkey logo

-# This is a basic workflow to help you get started with Actions

name: CI

Controls when the workflow will run

on:

Triggers the workflow on push or pull request events but only for the "main" branch

push: branches: [ "main" ] pull_request: branches: [ "main" ]

Allows you to run this workflow manually from the Actions tab

workflow_dispatch:

A workflow run is made up of one or more jobs that can run sequentially or in parallel

jobs:

This workflow contains a single job called "build"

build: # The type of runner that the job will run on runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
  # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
  - uses: actions/checkout@v3

  # Runs a single command using the runners shell
  - name: Run a one-line script
    run: echo Hello, world!

  # Runs a set of commands using the runners shell
  - name: Run a multi-line script
    run: |
      echo Add other actions to build,
      echo test, and deploy your project.

šŸ‘‹ Hi, Iā€™m @franklinquinones

  • šŸ‘€ Iā€™m interested in ...
  • šŸŒ± Iā€™m currently learning ...
  • šŸ’žļø Iā€™m looking to collaborate on ...
  • šŸ“« How to reach me ...

StripeConfiguration.ApiKey = "sk_test_51LiL8VEevvHdcOhJjDqgee5P7M8wexGR1q3ODX5chqe96TBWc9jpuVCbSksdGlvJFVohsNX8FAvXoMtCZlnA15Aq00kPbCQ6GF"; var options = new RequestOptions { ApiKey = "sk_test_51LiL8VEevvHdcOhJjDqgee5P7M8wexGR1q3ODX5chqe96TBWc9jpuVCbSksdGlvJFVohsNX8FAvXoMtCZlnA15Aq00kPbCQ6GF" }; var service = new ChargeService(); Charge charge = service.Get( "ch_3LiLgOEevvHdcOhJ0D72VAZy", options ); var options = new RequestOptions { StripeAccount = "acct_1LiL8VEevvHdcOhJ" }; var service = new ChargeService(); Charge charge = service.Get( "ch_3LiLgOEevvHdcOhJ0D72VAZy", options ); try { // Use Stripe's library to make request } catch (StripeException e) { switch (e.StripeError.Type) { case "card_error": Console.WriteLine("Code: " + e.StripeError.Code); Console.WriteLine("Message: " + e.StripeError.Message); break; case "api_connection_error": break; case "api_error": break; case "authentication_error": break; case "invalid_request_error": break; case "rate_limit_error": break; case "validation_error": break; default: // Unknown Error Type break; } } StripeConfiguration.ApiKey = "sk_test_51LiL8VEevvHdcOhJjDqgee5P7M8wexGR1q3ODX5chqe96TBWc9jpuVCbSksdGlvJFVohsNX8FAvXoMtCZlnA15Aq00kPbCQ6GF";

var options = new ChargeCreateOptions { Amount = 2000, Currency = "usd", Source = "tok_amex", // obtained with Stripe.js Description = "My First Test Charge (created for API docs at https://www.stripe.com/docs/api)", }; var service = new ChargeService(); service.Create(options, new RequestOptions { IdempotencyKey = "7Q4EmQr5EIvbvaOA", }); StripeConfiguration.ApiKey = "sk_test_51LiL8VEevvHdcOhJjDqgee5P7M8wexGR1q3ODX5chqe96TBWc9jpuVCbSksdGlvJFVohsNX8FAvXoMtCZlnA15Aq00kPbCQ6GF";

var options = new ChargeCreateOptions() { Amount = 2000, Currency = "usd", Source = "tok_amex", Metadata = new Dictionary<string, string> { { "OrderId", "6735" }, } };

var service = new ChargeService(); Charge charge = service.Create(options); StripeConfiguration.ApiKey = "sk_test_51LiL8VEevvHdcOhJjDqgee5P7M8wexGR1q3ODX5chqe96TBWc9jpuVCbSksdGlvJFVohsNX8FAvXoMtCZlnA15Aq00kPbCQ6GF";

var service = new CustomerService(); var options = new CustomerListOptions { Limit = 3 };

// Synchronously paginate foreach (var customer in service.ListAutoPaging(options)) { // Do something with customer }

// Asynchronously paginate await foreach (var customer in service.ListAutoPagingAsync(options)) { // Do something with customer } StripeConfiguration.ApiKey = "sk_test_51LiL8VEevvHdcOhJjDqgee5P7M8wexGR1q3ODX5chqe96TBWc9jpuVCbSksdGlvJFVohsNX8FAvXoMtCZlnA15Aq00kPbCQ6GF";

Customer customer = new CustomerService().Create(null); Console.WriteLine(customer.RequestId); StripeConfiguration.ApiKey = "sk_test_51LiL8VEevvHdcOhJjDqgee5P7M8wexGR1q3ODX5chqe96TBWc9jpuVCbSksdGlvJFVohsNX8FAvXoMtCZlnA15Aq00kPbCQ6GF"; // Since C# is strongly typed, // the version is fixed in the library. StripeConfiguration.ApiKey = "sk_test_51LiL8VEevvHdcOhJjDqgee5P7M8wexGR1q3ODX5chqe96TBWc9jpuVCbSksdGlvJFVohsNX8FAvXoMtCZlnA15Aq00kPbCQ6GF";

var service = new BalanceService(); Balance balance = service.Get(); StripeConfiguration.ApiKey = "sk_test_51LiL8VEevvHdcOhJjDqgee5P7M8wexGR1q3ODX5chqe96TBWc9jpuVCbSksdGlvJFVohsNX8FAvXoMtCZlnA15Aq00kPbCQ6GF";

var service = new BalanceService(); Balance balance = service.Get(); StripeConfiguration.ApiKey = "sk_test_51LiL8VEevvHdcOhJjDqgee5P7M8wexGR1q3ODX5chqe96TBWc9jpuVCbSksdGlvJFVohsNX8FAvXoMtCZlnA15Aq00kPbCQ6GF";

var options = new PayoutCreateOptions { Amount = 408, Currency = "usd", }; var service = new PayoutService(); service.Create(options);

franklinquinones's Projects

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.