Skip to content

Commit

Permalink
Typo. #327
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue committed Mar 7, 2016
1 parent 06d7851 commit 1661742
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions src/Payment/API.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class API extends AbstractAPI
const API_AUTH_CODE_TO_OPENID = 'https://api.mch.weixin.qq.com/tools/authcodetoopenid';

// order id types.
const TRANSCATION_ID = 'transcation_id';
const TRANSACTION_ID = 'transaction_id';
const OUT_TRADE_NO = 'out_trade_no';
const OUT_REFUND_NO = 'out_refund_no';
const REFUND_ID = 'refund_id';
Expand Down Expand Up @@ -114,15 +114,15 @@ public function query($orderNo, $type = self::OUT_TRADE_NO)
}

/**
* Query order by transcation_id.
* Query order by transaction_id.
*
* @param string $transcationId
* @param string $transactionId
*
* @return \EasyWeChat\Support\Collection
*/
public function queryByTranscationId($transcationId)
public function queryByTransactionId($transactionId)
{
return $this->query($transcationId, self::TRANSCATION_ID);
return $this->query($transactionId, self::TRANSACTION_ID);
}

/**
Expand Down Expand Up @@ -159,15 +159,15 @@ public function reverse($orderNo, $type = self::OUT_TRADE_NO)
}

/**
* Reverse order by transcation_id.
* Reverse order by transaction_id.
*
* @param int $transcationId
* @param int $transactionId
*
* @return \EasyWeChat\Support\Collection
*/
public function reverseByTranscationId($transcationId)
public function reverseByTransactionId($transactionId)
{
return $this->reverse($transcationId, self::TRANSCATION_ID);
return $this->reverse($transactionId, self::TRANSACTION_ID);
}

/**
Expand Down Expand Up @@ -200,7 +200,7 @@ public function refund(
}

/**
* Refund by transcation id.
* Refund by transaction id.
*
* @param string $orderNo
* @param float $totalFee
Expand All @@ -209,13 +209,13 @@ public function refund(
*
* @return \EasyWeChat\Support\Collection
*/
public function refundByTranscationId(
public function refundByTransactionId(
$orderNo,
$totalFee,
$refundFee = null,
$opUserId = null
) {
return $this->refund($orderNo, $totalFee, $refundFee, $opUserId, self::TRANSCATION_ID);
return $this->refund($orderNo, $totalFee, $refundFee, $opUserId, self::TRANSACTION_ID);
}

/**
Expand Down Expand Up @@ -250,13 +250,13 @@ public function queryRefundByRefundNo($refundNo)
/**
* Query refund status by transaction_id.
*
* @param string $transcationId
* @param string $transactionId
*
* @return \EasyWeChat\Support\Collection
*/
public function queryRefundByTranscationId($transcationId)
public function queryRefundByTransactionId($transactionId)
{
return $this->queryRefund($transcationId, self::TRANSCATION_ID);
return $this->queryRefund($transactionId, self::TRANSACTION_ID);
}

/**
Expand Down

0 comments on commit 1661742

Please sign in to comment.