Open Journal Systems
3.3.0
|
Public Member Functions | |
createCompletedPayment ($queuedPayment, $payMethod, $userId=null) | |
createQueuedPayment ($request, $type, $userId, $assocId, $amount, $currencyCode=null) | |
fulfillQueuedPayment ($request, $queuedPayment, $payMethodPluginName=null) | |
getPaymentName ($payment) | |
getPaymentPlugin () | |
isConfigured () | |
membershipEnabled () | |
onlyPdfEnabled () | |
publicationEnabled () | |
purchaseArticleEnabled () | |
purchaseIssueEnabled () | |
Public Member Functions inherited from PaymentManager | |
__construct ($context) | |
displayConfigurationForm () | |
fulfillQueuedPayment ($request, $queuedPayment) | |
getPaymentForm ($queuedPayment) | |
getQueuedPayment ($queuedPaymentId) | |
queuePayment ($queuedPayment, $expiryDate=null) | |
Additional Inherited Members | |
Data Fields inherited from PaymentManager | |
$_context | |
Provides payment management functions.
Definition at line 31 of file OJSPaymentManager.inc.php.
OJSPaymentManager::createCompletedPayment | ( | $queuedPayment, | |
$payMethod, | |||
$userId = null |
|||
) |
Create a completed payment from a queued payment.
$queuedPayment | QueuedPayment Payment to complete. |
$payMethod | string Name of payment plugin used. |
$userId | int User ID to attribute payment to (if unspecified, will be taken from queued payment) |
Definition at line 101 of file OJSPaymentManager.inc.php.
Referenced by fulfillQueuedPayment().
OJSPaymentManager::createQueuedPayment | ( | $request, | |
$type, | |||
$userId, | |||
$assocId, | |||
$amount, | |||
$currencyCode = null |
|||
) |
Create a queued payment.
$request | PKPRequest |
$type | int PAYMENT_TYPE_... |
$userId | int ID of user responsible for payment |
$assocId | int ID of associated entity |
$amount | float Amount of currency $currencyCode |
$currencyCode | string optional ISO 4217 currency code |
Definition at line 50 of file OJSPaymentManager.inc.php.
References DAORegistry\getDAO().
OJSPaymentManager::fulfillQueuedPayment | ( | $request, | |
$queuedPayment, | |||
$payMethodPluginName = null |
|||
) |
Fulfill a queued payment.
$request | PKPRequest |
$queuedPayment | QueuedPayment |
$payMethodPluginName | string Name of payment plugin. |
Definition at line 179 of file OJSPaymentManager.inc.php.
References createCompletedPayment(), fatalError(), DAORegistry\getDAO(), and SubscriptionAction\sendOnlinePaymentNotificationEmail().
OJSPaymentManager::getPaymentName | ( | $payment | ) |
Fetch the name of the description.
Definition at line 305 of file OJSPaymentManager.inc.php.
References DAORegistry\getDAO().
OJSPaymentManager::getPaymentPlugin | ( | ) |
Get the payment plugin.
Reimplemented from PaymentManager.
Definition at line 162 of file OJSPaymentManager.inc.php.
References PluginRegistry\loadCategory().
OJSPaymentManager::isConfigured | ( | ) |
Determine whether the payment system is configured.
Reimplemented from PaymentManager.
Definition at line 36 of file OJSPaymentManager.inc.php.
Referenced by membershipEnabled(), onlyPdfEnabled(), publicationEnabled(), purchaseArticleEnabled(), and purchaseIssueEnabled().
OJSPaymentManager::membershipEnabled | ( | ) |
Determine whether publication fees are enabled.
Definition at line 130 of file OJSPaymentManager.inc.php.
References isConfigured().
OJSPaymentManager::onlyPdfEnabled | ( | ) |
Determine whether PDF-only article purchase fees are enabled.
Definition at line 154 of file OJSPaymentManager.inc.php.
References isConfigured().
OJSPaymentManager::publicationEnabled | ( | ) |
Determine whether publication fees are enabled.
Definition at line 122 of file OJSPaymentManager.inc.php.
References isConfigured().
OJSPaymentManager::purchaseArticleEnabled | ( | ) |
Determine whether article purchase fees are enabled.
Definition at line 138 of file OJSPaymentManager.inc.php.
References isConfigured().
OJSPaymentManager::purchaseIssueEnabled | ( | ) |
Determine whether issue purchase fees are enabled.
Definition at line 146 of file OJSPaymentManager.inc.php.
References isConfigured().