FastSpring
This provider intends to import existing products from FastSpring into Kirby once and then switch to another provider.
Using the provider
site/config/config.php
<?php
return [
'bnomei.kart.provider' => 'fastspring',
// other options
];
API Credentials

.env
FASTSPRING_STORE_URL=XXX
FASTSPRING_USERNAME=YYY
FASTSPRING_PASSWORD=ZZZ
Customzing the Checkout
You can use callbacks to customise both the checkout process and each line item. The returned arrays from your callbacks will be merged with the defaults created by the plugin for this provider, allowing you to override those defaults. Check the relevant PHP class and the linked online documentation for the provider to learn more about the expected data structure.
<?php
return [
'bnomei.kart.fastspring.checkout_options' => function (\Bnomei\Kart\Kart $kart) {
// configure the checkout based on current kart instance
// https://developer.fastspring.com/docs/storefront-urls#link-to-your-checkouts-with-the-api
return [];
},
'bnomei.kart.fastspring.checkout_line' => function (\Bnomei\Kart\Kart $kart, \Bnomei\Kart\CartLine $line) {
// add custom data to the current checkout line
return [];
},
// other options
];