http://forum.opencart.com/viewtopic.php?f=136&t=65005
위 링크의 글은 페이팔 결제를 지원하지 않는 통화의 경우 문제 해결 방법입니다. 무슨 이야기이냐면 쇼핑몰의 통화가 "KRW"와 "USD"를 모두 지원하더라도 사용자 인터페이스에서 "KRW"로 선택되어 있으면 페이팔 결제가 되지 않습니다.
1.5.x 버전 이후만 이야기합니다. 그 이전 버전을 쓰시던 분이라면 이미 문제 해결 능력이 있을 것이라고 간주합니다.
1. catalog/model/payment/pp_standard.php 파일 편집
2. 다음 부분을 찾아 삭제 또는 주석처리
Code: Select all
if (!in_array(strtoupper($this->currency->getCode()), $currencies)) {
$status = false;
}
4. 다음 줄을 찾아서 (첫 번째 일치)
Code: Select all
$order_info = $this->model_checkout_order->getOrder
Code: Select all
$currencies = array('AUD','CAD','EUR','GBP','JPY','USD','NZD','CHF','HKD','SGD','SEK','DKK','PLN','NOK','HUF','CZK','ILS','MXN','MYR','BRL','PHP','TWD','THB','TRY');
if (!in_array(strtoupper($this->currency->getCode()), $currencies)) {
$order_info['currency_code'] = 'USD';
}