Skip to content

Commit

Permalink
bugfix: 创建订单,订单ID写入失败 && feat: 退款增加订单ID
Browse files Browse the repository at this point in the history
  • Loading branch information
qiqizjl committed Dec 26, 2019
1 parent 50b2644 commit 14112e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Message/Rest/AuthorizeRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ public function getData()
'value' => $this->getAmount(),
'currency_code' => $this->getCurrency(),
),
'invoice_number' => $this->getTransactionId(),
'invoice_id' => $this->getTransactionId(),
),
),
'experience_profile_id' => $this->getExperienceProfileId(),
Expand Down
3 changes: 2 additions & 1 deletion src/Message/Rest/RefundRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ public function getData()
if ($this->getAmount() > 0) {
return array (
'amount' => array (
'currency' => $this->getCurrency(),
'currency_code' => $this->getCurrency(),
'value' => $this->getAmount(),
),
"invoice_id"=>$this->getTransactionId(),
'note_to_payer' => $this->getDescription(),
);
} else {
Expand Down

0 comments on commit 14112e8

Please sign in to comment.