Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99653780
PhortuneMultiplePaymentProvidersException.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Jan 26, 00:18
Size
869 B
Mime Type
text/x-php
Expires
Tue, Jan 28, 00:18 (2 d)
Engine
blob
Format
Raw Data
Handle
23839249
Attached To
rPH Phabricator
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
).
'.'
);
}
}
Event Timeline
Log In to Comment