Ucommerce
  • Ucommerce Next Gen
    • Getting Started
      • Prerequisites
      • Licensing
      • Ucommerce Templates
      • Headless Template
      • MVC Template
    • Headless
      • Postman Collection
      • Headless API Authentication
        • Token endpoint - Authorization Header
        • Authorization Scopes
        • Refreshing the Access Token
      • Reference
        • Cart
        • Cart / Order Line Items
        • Shipment
        • Billing
        • Promotion Codes
        • Price Groups
        • Payment Methods
        • Countries
        • Shipping Methods
        • Catalogs
        • Cart Custom Properties
        • Line Item Custom Properties
        • Orders
        • Views for Cart modifying operations
      • Custom Headless APIs
      • Error Handling
      • Pagination
      • Deprecation
    • Backoffice Authentication
      • Microsoft Entra ID Example
      • Auth0 Authentication Example
    • Definitions
      • What is a Definition
    • Search and indexing
      • Configuration
      • Indexing
        • Index Definitions
        • Facets
        • Indexing Prices
        • Suggestions
        • Custom Data
      • Searching
    • Payment Providers
      • Stripe Provider Integration
      • Implementing a custom payment provider
    • Data Import
    • Miscellaneous
      • Media
      • Price Group Inheritance
      • Price Group Criteria
      • Soft Deletion Of Entities
      • Logging
      • OpenTelemetry
    • Extensions
      • Extending Pipelines
        • Order Processing Pipelines
        • Checkout Pipelines
      • Changing Service Behavior
        • Images
        • Content
      • Custom Headless APIs
      • Extend the Backoffice
        • Custom UI Components
      • Custom Editor UI
      • Custom Promotion Criteria
      • Custom Price Group Criteria
    • How-To
      • Migrate from Classic
        • Common database issues
      • Entities from code
        • Bootstrapping data on startup
        • Product Definitions & Fields
      • Discover pipelines and their tasks
      • Executing a pipeline
    • Integrations
      • Umbraco Media Delivery API
      • App Slices
        • Product Picker
  • Release Notes
  • Contact Us
Powered by GitBook
On this page
  • Stripe
  • Installing the integration
  • Creating a Payment Method
  • Configuring Stripe

Was this helpful?

  1. Ucommerce Next Gen
  2. Payment Providers

Stripe Provider Integration

How to get started with payment provider integrations.

Stripe

Installing the integration

  • Install the Ucommerce.Payments.Stripe NuGet package.

  • Add the Stripe integration to the program.cs file to use the default Stripe implementation:

Program.cs
        services.AddUcommerce()    
            .AddBackOffice()
            .AddPayments()
            .AddStripe()
        
        app.UseUcommerce()
            .UseBackOfficeUi()
            .UsePayments()
            .UseStripe("OptionalCallbackUri");

OptionalCallbackUri is the URI where the Stripe webhook should be pointed to later. If left without a value, the default endpoint will be:{yourDomain}/Stripe/process/callback

Stripe is now available as a payment method service. It can now be selected for new and existing payment methods.

Creating a Payment Method

  • In the back office UI, navigate to Settings -> Payment Methods.

  • Click New to create a new payment method.

  • Select Stripe as the service.

Configuring Stripe

Connect the payment method to a Stripe account by filling out the Service properties section in UI.

The service properties available will vary depending on the payment service selected.

Property
Description
Required

Public Key

The account-specific public key for the Stripe account. It can be found in the Stripe Developer Dashboard.

Secret Key

The account-specific secret key for the Stripe account. It can be found in the Stripe Developer Dashboard.

Webhook Secret

The webhook-specific key. It is set up in the Stripe Developer Dashboard.

Success URL

The partial route that the user is navigated to on a successful purchase.

Cancel URL

The partial route that the user is navigated to on an unsuccessful purchase.

Once configured, the payment method can be enabled by flipping the Enabled toggle in the UI.

PreviousPayment ProvidersNextImplementing a custom payment provider

Last updated 6 months ago

Was this helpful?

The keys can be found on the Stripe Developer Dashboard located . When setting up the webhook, remember to point it to the .

When testing the Stripe integration, the can greatly help. If testing is done on a local machine using localhost, a tunneling service can be used as a proxy.

Stripe CLI
here
webhook set on startup
All added services will show up in the Service tab
This is what the default payment service properties looks like - it only contains an AcceptUrl property.