Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1111819
PhortuneMultiplePaymentProvidersException.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
869 B
Referenced Files
None
Subscribers
None
PhortuneMultiplePaymentProvidersException.php
View Options
<?php
final
class
PhortuneMultiplePaymentProvidersException
extends
Exception
{
public
function
__construct
(
PhortunePaymentMethod
$method
,
array
$providers
)
{
assert_instances_of
(
$providers
,
'PhortunePaymentProvider'
);
$type
=
$method
->
getMetadataValue
(
'type'
);
$provider_names
=
array
();
foreach
(
$providers
as
$provider
)
{
$provider_names
[]
=
get_class
(
$provider
);
}
return
parent
::
__construct
(
"More than one payment provider can handle charging payments for this "
.
"payment method. This is ambiguous and likely indicates that a payment "
.
"provider is not properly implemented. You may be able to use a "
.
"different payment method to complete this transaction. The payment "
.
"method type is '{$type}'. The providers claiming to handle it are: "
.
implode
(
', '
,
$provider_names
).
'.'
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Jun 30, 11:28 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
259910
Default Alt Text
PhortuneMultiplePaymentProvidersException.php (869 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment