Skip to content
This repository was archived by the owner on Apr 14, 2020. It is now read-only.

Commit c8d80c3

Browse files
committed
Revert "Revert "Return timestamp from pre-purchase""
This reverts commit 40c9f86.
1 parent ba96189 commit c8d80c3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Omnipay/WeChat/Message/WechatPurchaseRequest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ public function initialize(array $parameters = array())
2121

2222
public function getData()
2323
{
24-
$this->validate('code_url');
24+
$this->validate('code_url', 'timestamp');
2525

2626
$params['code_url'] = $this->parameters->get('code_url');
27+
$params['timestamp'] = $this->parameters->get('timestamp');
2728

2829
if (empty($params['code_url'])) {
2930
throw new \RuntimeException('The code_url that pre-purchase responded is empty, check your parameters!');

0 commit comments

Comments
 (0)