LogoLogo
Contact usBook a demoSupport
  • 🟦v2.0
    • 👋Introduction
    • Front Office
      • Front interface structure
      • Log in & Register
      • Homepage
        • Vendor Homepage
        • Customer Homepage
        • Homepage (User search feature)
        • AI Search Assistant
      • Rendering types
        • Commoditized Rendering types
          • Listing Deposit (All rendering types)
          • Time Based
            • Create a Listing (Time Based)
            • Edit a Listing (Time Based)
            • Show a Listing (Time Based)
            • Book a Service (Time Based)
          • Seat Based
            • Create a Listing (Seat Based)
            • Edit a Listing (Seat-Based)
            • Show a Listing (Seat-Based)
            • Book a Listing (Seat-Based)
          • Flat Rate
            • Create a Listing (Flat Rate)
            • Edit a Listing (Flat-Rate)
            • Show a Listing (Flat Rate)
            • Book a Listing (Flat Rate)
        • Uncommoditized Rendering types
          • Request for Proposal (RFP)
            • Create a Request for Proposal (RFP)
              • RFP Assistant
            • RFP page (RFP)
            • Bid proposals (RFP)
      • Listing details supported by AI
      • Platform Subscriptions
      • Quote requests (Quote)
      • Upgrades management
      • Discount Coupons
      • Search result pages
        • Listings search results page (Time-Based mode)
        • Listings search results page per category (All Rendering types)
        • Users search results page (User search feature)
        • Listing Alert management (Listing Alert mode)
        • Listings search results page
      • Favorite page
      • Profile pages
        • Profile page (Time-Based mode)
      • Content page
      • Users onboarding page
      • Contact page
    • Dashboards
      • User dashboard structure pages
      • User KPI - Homepage
        • User KPI (Time-Based, Seat-Based, Flat-Rate, RFC)
        • User KPI (RFP bundle)
      • Messages dashboard
      • Quotes dashboard (Quote feature)
      • Bids dashboard (RFP rendering type)
      • Request for proposals dashboard (RFP rendering type)
      • Bookings dashboard
        • Bookings dashboard (Time-Based rendering type)
        • Mediation management dashboard (Mediation feature)
        • Bookings dashboard (Subscription)
      • Listings dashboard
      • Platform Subscriptions
      • Payments dashboard
        • Payments dashboard (Time-Based rendering type)
        • Invoices (Flat-Rate rendering type)
      • Reviews dashboard
      • User profile dashboard
        • User profile dashboard (All rendering types)
        • User profile dashboard (User search feature)
    • SuperAdmin
      • Accessing the Backoffice
      • Navigating the Backoffice
      • Platform KPI - Homepage
      • Listings
        • Viewing and managing listings
        • Listings categories management
        • Listings attribute management
      • Coupon
      • Mediation
      • Bookings
        • Bookings management
        • Bids management
        • Quotes Management
        • Payments management
        • Reviews management
      • Users
        • Viewing and managing users
        • User categories management
        • User attributes management
        • Users messages management
        • Contact management
      • Platform Subscriptions
        • Plans
        • Subscriptions
      • Access rights
        • Administrators management
        • Rights management
        • Roles management
      • Contents
        • Header menus
        • Footer menus
        • Pages
          • Guide: manage a page's slug
          • Guide: add contents to internal pages
        • Interface texts
        • Messages to users (Notifications)
      • Configurations
        • Preset
        • Webhook
        • Commands
        • Features
          • Artificial Intelligence Features
            • AI Settings
            • AI Patterns Feature
            • AI Search Assistant Configurations
            • Vendor Matching Configuration
            • RFP Assistant Configuration
            • Rendering Type Auto Suggestion
      • Setting up Third Party API accounts
      • OAuth
      • Service templates management
        • Service templates (Flat-Rate rendering type)
        • Subscription service templates (Flat-Rate rendering type)
      • Settings
        • Home Page Media
        • Home Page Setup
    • Core Concepts
      • Time-Based rendering type
      • Flat-Rate rendering type
        • Subscription
      • Seat-Based Rendering type
        • Stock Feature
      • Request for proposal bundle (RFP)
      • Quote Feature
      • Platform Subscription
      • User search feature
      • Calendar Sync feature
      • Mediation feature
      • Typesense feature
      • Listing Alert feature
      • Upgrades feature
      • Coupon Feature
      • SMS Feature
      • Listing Search Advanced Feature
      • Recaptcha Feature
      • Payment Service Provider features (PSP)
        • Stripe bundle (PSP) - Business rules
          • Dashboard Stripe - Subscription Feature
        • Mangopay bundle (PSP) - Business rules
          • Dashboard Mangopay - Subscription Feature
          • Bank Wire Transfer Payment (Banking Alias) / RFP rendering type (Request for Proposal)
      • Search Engine Optimization (SEO)
      • Maildev
      • Audit
      • General Data Protection Regulation (GDPR)
      • Google Tools
      • Users Onboarding
    • Glossary
Powered by GitBook
LogoLogo

© Second SAS

On this page
  • Why / Which context
  • Steps to reproduce
  • Make a booking on your platform
  • Accept the subscription request and enable payments
  • Test the active period
  • The asker need to confirm the payin
  • Test the next subscription period
  • Commands
  • Status
  • Subscription period
  • Subscription status

Was this helpful?

Export as PDF
  1. v2.0
  2. Core Concepts
  3. Payment Service Provider features (PSP)
  4. Mangopay bundle (PSP) - Business rules

Dashboard Mangopay - Subscription Feature

Environment test: Test all status and automatic payment workflow of the subscription services

PreviousMangopay bundle (PSP) - Business rulesNextBank Wire Transfer Payment (Banking Alias) / RFP rendering type (Request for Proposal)

Last updated 11 months ago

Was this helpful?

Why / Which context

The inter-user subscription allows automatic recurring payment for one booking.

Payments are automatic in production, but in environment tests, it will take a few days to complete a workflow.

Steps to reproduce

You do not need to have access to the Mangopay dashboard, all is handled through Second platform.

Make a booking on your platform

Go on your platform and log in as an asker and create a booking request.

Learn more on the process of booking requests here: Booking confirmation pages (Subscription Feature)

And fill in the credit card information.

The bank-wire payment is not available for subscription services.

Accept the subscription request and enable payments

Once the payment has been made by the asker, the offeror can accept the subscription.

By default, the Payin is done 2 days before the start date of the subscription period. This is set with the following configuration: subscription_automatic.

The status of the subscription period will be Paid but the payin will not be done.

Test the active period

Go in the SBO and fill the arguments in the command subscription.status

Arguments: --test --id=1868442188 --clock=P1Y1MT1H1M

The same process to enable the payout: the command cocorico:subscription:validate.

Arguments: --test --delay-weekly=-P1M

No space between the = and the Clock naming convention

Do not forget the - before the period

Period

Clock naming convention

One minute

T1M

One hour

T1H

One month

P1M

One year

P1Y

The asker need to confirm the payin

Once the offeror accept the booking, the asker will have to confirm the booking.

He have to fill a 2nd time his payment information. This is for security reasons but he will not be charge twice.

This security confirmation appears only for the first period. Once it is done you do not have to do it again.

Test the next subscription period

To finish the complete workflow you should test the next period.

Once the period T is active it will create the next subscription period is pending.

You can reproduce the point 5. test the active period.

The expected behavior is:

  • The current subscription period is done

  • The next subscription period is active

  • The payout is available

You can reproduce steps 5 as many as you want in order to test several subscription period.

Commands

  • second:subscription:expire

    • Simulate a subscription request that has not been accepted or declined

    • No arguments

  • second:subscription:status

    • Simulate the day of the platform to test payin and status

    • Args: --test --id=1868442188 --clock=P1M

  • second:subscription:validate

    • Simulate the day of the platform to test payout and status and enable another subscription period

    • Args: --test --delay-weekly=-P1M

Reminder

No space between the = and the Clock naming convention

Do not forget the - before the period

Period

Clock naming convention

One minute

T1M

One hour

T1H

One month

P1M

One year

P1Y

Status

Subscription period

Workflow

The subscription period workflow for a Accepted subscription request is:

Pending > Accepted > Paid > Active > Done

Status

  • Pending: the next period, it is waiting for subscription acceptance or for payment

  • Canceled: the next period was canceled by the asker

  • Declined: the subscription request was canceled by the offerer

  • PaymentError: the next period has a payment issue

  • Paid: the next period was paid successfully but the period didn’t start yet (payment attempt delay)

  • Active: the next period becomes active when the period starts (new cron command required)

  • Done: the current period becomes done when the period ends (new cron command required)

  • Canceled: the current period is paid or pending, and the active period (if any) becomes Done when the period ends.

Subscription status

  • Pending: the subscription request is waiting for the offerer acceptation

  • Canceled: the subscription request was canceled by the asker

  • Declined: the subscription request was canceled by the offerer

  • Accepted: the subscription request was accepted by the offerer

  • PaymentError: the next subscription period has a payment issue

  • Paid: the first period was paid successfully but the period didn’t start yet (payment attempt delay)

  • Active: the next period starts and it’s paid (new cron command required)

  • Canceled: the next period was canceled and ( there is no current paid period or the current paid period ends ) (new cron command required)

Learn more on the process of booking management here:

🟦
Bookings dashboard (Subscription Feature)
Why / Which context
Steps to reproduce
Make a booking on your platform
Accept the subscription request and enable payments
Test the active period
The asker needs to confirm the payin
Test the next subscription period
Commands
Reminder
Status
Subscription period
Workflow
Status
Subscription status