當我嘗試通過我的網站後端使用masspay api匯款時,我收到以下錯誤:「大容量付款服務器的輸入不正確,請確保您使用格式正確的輸入。 Masspay未完成「Masspay無法支付
結果是錢不轉移。
這隻發生在金額有十進制數字時。例如4.25€。當我嘗試發送非十進制數時,不會發生這種情況,例如10€,20€或其他。
發生了什麼事?
感謝
當我嘗試通過我的網站後端使用masspay api匯款時,我收到以下錯誤:「大容量付款服務器的輸入不正確,請確保您使用格式正確的輸入。 Masspay未完成「Masspay無法支付
結果是錢不轉移。
這隻發生在金額有十進制數字時。例如4.25€。當我嘗試發送非十進制數時,不會發生這種情況,例如10€,20€或其他。
發生了什麼事?
感謝
如果(!空($ userCashWithdrawalId)& &!空($ cash_withdraw)){
$data['Transaction']['user_id'] = ConstUserIds::Admin;
$data['Transaction']['foreign_id'] = $cash_withdraw['UserCashWithdrawal']['user_id'];
$data['Transaction']['class'] = 'SecondUser';
$data['Transaction']['amount'] = $cash_withdraw['UserCashWithdrawal']['amount'];
$data['Transaction']['description'] = 'User cash withdrawal request approved by admin';
$data['Transaction']['transaction_type_id'] = ConstTransactionTypes::AdminApprovedWithdrawalRequest;
$this->UserCashWithdrawal->User->Transaction->log($data);
$transaction_id = $this->UserCashWithdrawal->User->Transaction->getLastInsertId();
$data = array();
$data['Transaction']['user_id'] = $cash_withdraw['UserCashWithdrawal']['user_id'];
$data['Transaction']['foreign_id'] = ConstUserIds::Admin;
$data['Transaction']['class'] = 'SecondUser';
$data['Transaction']['amount'] = $cash_withdraw['UserCashWithdrawal']['amount'];
$data['Transaction']['description'] = 'User cash withdrawal request approved by admin';
$data['Transaction']['transaction_type_id'] = ConstTransactionTypes::AmountApprovedForUserCashWithdrawalRequest;
$this->UserCashWithdrawal->User->Transaction->log($data);
// update log transaction id
$paypal_log_array = array();
$paypal_log_array['PaypalTransactionLog']['id'] = $status['paypal_log_list'][$userCashWithdrawalId];
$paypal_log_array['PaypalTransactionLog']['transaction_id'] = $transaction_id;
$this->loadModel('PaypalTransactionLog');
$this->PaypalTransactionLog->save($paypal_log_array);
// update status
$user_cash_data = array();
$user_cash_data['UserCashWithdrawal']['id'] = $userCashWithdrawalId;
$user_cash_data['UserCashWithdrawal']['withdrawal_status_id'] = ConstWithdrawalStatus::Approved;
$this->UserCashWithdrawal->save($user_cash_data);
}
}
$messageType = 'success';
$flash_message = __l('Mass payment request is submitted in Paypal. User will be paid once process completed.');
} **else {
$user_count = count($status['paypal_log_list']);
$flash_message = '';
for ($i = 0; $i < $user_count; $i++) {
if (!empty($status['paypal_response']['L_LONGMESSAGE' . $i])) {
$flash_message.= urldecode($status['paypal_response']['L_LONGMESSAGE' . $i]) . ' , ';
}
}
$messageType = 'error';
$flash_message.= __l(' Masspay not completed');**
這是我的腳本與Masspay API進行通信的代碼部分。最後的'大膽'部分是在那裏,我在我的第一篇文章中附加的錯誤信息,產生。我可以在任何你可能需要的進一步的信息 – Kolevris 2012-03-03 14:28:01
難道你不認爲這將有助於包括你發送請求,包括完整的迴應? – Robert 2012-02-29 00:54:10
我該怎麼做? – Kolevris 2012-02-29 11:44:11
我沒有獲得masspay api,因爲它已預先安裝了我購買的腳本。不幸的是,他們製作腳本的人,要錢來解決這個問題。但是如果你給我指示,我可以嘗試自己解決。我甚至可以訪問網站後端給願意使用它的人。謝謝 – Kolevris 2012-02-29 11:52:38