Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
abei2017 committed Mar 21, 2020
2 parents 5aa23ae + fbdf2b5 commit d38c8cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mini/payment/Pay.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ protected function prepare($attrs = []){
$attrs['nonce_str'] = Yii::$app->security->generateRandomString(32);
$attrs['sign'] = Util::makeSign($attrs,$this->conf['payment']['key']);

$response = $this->post(self::PREPARE_URL,$attrs)->setFormat(Client::FORMAT_XML)->send();
$response = $this->post(self::PREPARE_URL,$attrs)->setFormat(Client::FORMAT_XML)->send()->setFormat(Client::FORMAT_XML);
return $this->prepare = (object)$response->getData();
}

Expand Down Expand Up @@ -137,4 +137,4 @@ public function handleNotify(callable $callback){
public function getNotify(){
return new Notify($this->conf['payment']);
}
}
}

0 comments on commit d38c8cc

Please sign in to comment.