Skip to content

Commit c8e1c92

Browse files
committed
調整cvc判斷
有credithash該欄位為非必填
1 parent bd6052f commit c8e1c92

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/PayuniApi.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -85,9 +85,9 @@ public function UniversalTrade(array $encryptInfo, string $tradeType) {
8585
if ($this->encryptInfo['CardExpired'] == null || $this->encryptInfo['CardExpired'] == '') {
8686
throw new Exception('CardExpired is not setting');
8787
}
88-
}
89-
if ($this->encryptInfo['CardCVC'] == null || $this->encryptInfo['CardCVC'] == '') {
90-
throw new Exception('CardCVC is not setting');
88+
if ($this->encryptInfo['CardCVC'] == null || $this->encryptInfo['CardCVC'] == '') {
89+
throw new Exception('CardCVC is not setting');
90+
}
9191
}
9292
break;
9393
case 'trade_close': // 交易請退款

0 commit comments

Comments
 (0)