-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #291 from enupal/develop
Develop
- Loading branch information
Showing
6 changed files
with
108 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?php | ||
/** | ||
* Stripe Payments plugin for Craft CMS 3.x | ||
* | ||
* @link https://enupal.com/ | ||
* @copyright Copyright (c) 2018 Enupal LLC | ||
*/ | ||
|
||
namespace enupal\stripe\fields; | ||
|
||
use craft\fields\BaseRelationField; | ||
use enupal\stripe\elements\Price; | ||
use enupal\stripe\Stripe as StripePlugin; | ||
|
||
/** | ||
* Class StripePrices | ||
* | ||
*/ | ||
class StripePrices extends BaseRelationField | ||
{ | ||
/** | ||
* @inheritdoc | ||
*/ | ||
public bool $allowMultipleSources = false; | ||
|
||
/** | ||
* @inheritdoc | ||
*/ | ||
public static function displayName(): string | ||
{ | ||
return StripePlugin::t('Stripe Prices'); | ||
} | ||
|
||
/** | ||
* @inheritdoc | ||
*/ | ||
public static function elementType(): string | ||
{ | ||
return Price::class; | ||
} | ||
|
||
/** | ||
* @inheritdoc | ||
*/ | ||
public static function defaultSelectionLabel(): string | ||
{ | ||
return StripePlugin::t('Add a Stripe Price'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters