MediaWiki fundraising/REL1_35
|
Contains donation workflow UI hints. More...
Public Member Functions | |
getErrors () | |
getFormData () | |
getIframe () | |
getRedirect () | |
getRefresh () | |
isFailed () | |
Static Public Member Functions | |
static | fromResults (PaymentTransactionResponse $response, $finalStatus) |
Build a PaymentResult object from adapter results. | |
static | newEmpty () |
static | newFailure ( $errors=[]) |
static | newFailureAndRedirect ( $url, $errors=[]) |
static | newIframe ( $url, $formData=[]) |
static | newRedirect ( $url, $formData=[]) |
static | newRefresh ( $errors=[]) |
static | newSuccess () |
Protected Member Functions | |
__construct () | |
Protected Attributes | |
$errors = [] | |
$failed = false | |
$formData = [] | |
$iframe | |
$redirect | |
$refresh = false | |
Contains donation workflow UI hints.
After each donation request or gateway response, the adapter produces a PaymentResult which wraps one of the following:
Definition at line 30 of file PaymentResult.php.
|
protected |
Definition at line 38 of file PaymentResult.php.
|
static |
Build a PaymentResult object from adapter results.
PaymentTransactionResponse | $response | processed response object |
string | $finalStatus | final transaction status. |
Definition at line 125 of file PaymentResult.php.
References PaymentTransactionResponse\getErrors(), PaymentTransactionResponse\getRedirect(), newEmpty(), newFailure(), newRedirect(), newRefresh(), and newSuccess().
Referenced by GlobalCollectAdapter\cancelSubscription(), PaypalExpressAdapter\cancelSubscription(), AmazonAdapter\doPayment(), AstroPayAdapter\doPayment(), GlobalCollectAdapter\doPayment(), PaypalExpressAdapter\doPayment(), GlobalCollectAdapter\doRefund(), PaypalExpressAdapter\doRefund(), AstroPayAdapter\processDonorReturn(), GlobalCollectAdapter\processDonorReturn(), IngenicoAdapter\processDonorReturn(), and PaypalExpressAdapter\processDonorReturn().
PaymentResult::getErrors | ( | ) |
Definition at line 108 of file PaymentResult.php.
References $errors.
Referenced by GatewayPage\renderResponse().
PaymentResult::getFormData | ( | ) |
Definition at line 96 of file PaymentResult.php.
References $formData.
PaymentResult::getIframe | ( | ) |
Definition at line 92 of file PaymentResult.php.
References $iframe.
Referenced by GatewayPage\renderResponse().
PaymentResult::getRedirect | ( | ) |
Definition at line 100 of file PaymentResult.php.
References $redirect.
Referenced by DonationApi\markLiberatedOnRedirect(), and GatewayPage\renderResponse().
PaymentResult::getRefresh | ( | ) |
Definition at line 104 of file PaymentResult.php.
References $refresh.
PaymentResult::isFailed | ( | ) |
Definition at line 112 of file PaymentResult.php.
References $failed.
Referenced by GatewayPage\renderResponse().
|
static |
Definition at line 83 of file PaymentResult.php.
Referenced by fromResults(), and GatewayAdapter\rectifyOrphan().
|
static |
Definition at line 67 of file PaymentResult.php.
References $errors.
Referenced by GatewayAdapter\cancel(), PaypalExpressAdapter\cancelSubscription(), AdyenCheckoutAdapter\doPayment(), BraintreeAdapter\doPayment(), IngenicoAdapter\doPayment(), PaypalExpressAdapter\doRefund(), fromResults(), GlobalCollectAdapter\processDonorReturn(), and PaypalExpressAdapter\processDonorReturn().
|
static |
Definition at line 74 of file PaymentResult.php.
References $errors.
|
static |
Definition at line 41 of file PaymentResult.php.
References $formData.
Referenced by GlobalCollectAdapter\doPayment(), and IngenicoAdapter\doPayment().
|
static |
Definition at line 48 of file PaymentResult.php.
References $formData.
Referenced by AdyenCheckoutAdapter\doPayment(), GlobalCollectAdapter\doPayment(), IngenicoAdapter\doPayment(), and fromResults().
|
static |
|
static |
Definition at line 62 of file PaymentResult.php.
Referenced by DlocalAdapter\doPayment(), fromResults(), GatewayAdapter\processDonorReturn(), GlobalCollectAdapter\processDonorReturn(), and PaypalExpressAdapter\processDonorReturn().
|
protected |
Definition at line 34 of file PaymentResult.php.
Referenced by getErrors(), newFailure(), newFailureAndRedirect(), and newRefresh().
|
protected |
Definition at line 36 of file PaymentResult.php.
Referenced by isFailed().
|
protected |
Definition at line 35 of file PaymentResult.php.
Referenced by getFormData(), newIframe(), and newRedirect().
|
protected |
Definition at line 31 of file PaymentResult.php.
Referenced by getIframe().
|
protected |
Definition at line 32 of file PaymentResult.php.
Referenced by getRedirect().
|
protected |
Definition at line 33 of file PaymentResult.php.
Referenced by getRefresh().