Skip to content

An example app with monetization enabled by Subscription Management Platform

License

Notifications You must be signed in to change notification settings

thetanz/smp-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup

Add your secret provider before deployment. Example:

codeunit 50003 "DeveloperSecretProvider"
{
    procedure TryInitializeFromCurrentApp(): Boolean
    begin
        exit(true)
    end;

    procedure GetSecret(Name: Text; var Result: Text): Boolean
    begin
        case Name of
            'StripeSecretKey':
                Result := ''; // Your Stripe API Secret: https://stripe.com/docs/keys#obtain-api-keys
            'StripePublishableKey':
                Result := ''; // Your Stripe Publishable Key: https://stripe.com/docs/keys#obtain-api-keys
            'StripeProductID':
                Result := ''; // Your Stripe Product Identifier: https://dashboard.stripe.com/products
            else
                exit(false);
        end;
        exit(true);
    end;
}