mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Don't request update URI from WePay
This commit is contained in:
parent
2aed1354e9
commit
5958cd2c5e
@ -29,18 +29,13 @@ class AccountGatewayDatatable extends EntityDatatable
|
||||
$wepayState = isset($config->state)?$config->state:null;
|
||||
$linkText = $model->name;
|
||||
$url = $endpoint.'account/'.$wepayAccountId;
|
||||
$wepay = \Utils::setupWepay($accountGateway);
|
||||
$html = link_to($url, $linkText, array('target'=>'_blank'))->toHtml();
|
||||
|
||||
try {
|
||||
if ($wepayState == 'action_required') {
|
||||
$updateUri = $wepay->request('/account/get_update_uri', array(
|
||||
'account_id' => $wepayAccountId,
|
||||
'redirect_uri' => URL::to('gateways'),
|
||||
));
|
||||
|
||||
$updateUri = $endpoint.'api/account_update/'.$wepayAccountId.'?redirect_uri='.urlencode(URL::to('gateways'));
|
||||
$linkText .= ' <span style="color:#d9534f">('.trans('texts.action_required').')</span>';
|
||||
$url = $updateUri->uri;
|
||||
$url = $updateUri;
|
||||
$html = "<a href=\"{$url}\">{$linkText}</a>";
|
||||
$model->setupUrl = $url;
|
||||
} elseif ($wepayState == 'pending') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user