PHP code example of depsimon / nova-stripe-checkout-field

1. Go to this page and download the library: Download depsimon/nova-stripe-checkout-field library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

depsimon / nova-stripe-checkout-field example snippets


\\ app\Nova\Actions\PublishJob.php
\\ use Depsimon\NovaStripeCheckoutField\NovaStripeCheckoutField;

public function fields()
{
    return [
        NovaStripeCheckoutField::make('Regular', 'regular_token')
            ->amount(9999)
            ->currency('eur')
            ->company('Nova Jobs')
            ->description('Regular Job Posting for 60 days')
            ->label('Checkout Regular Posting for 99€'),

        NovaStripeCheckoutField::make('Premium', 'premium_token')
            ->amount(19999)
            ->currency('eur')
            ->company('Nova Jobs')
            ->description('Premium Job Posting for 60 days')
            ->label('Checkout Premium Posting for 129€'),
    ];
}