Skip to content

Commit fef74b0

Browse files
authored
Merge pull request #14 from alipay/feature-pay-update
update:alipayPayRequest
2 parents ba783c8 + 1fe72a2 commit fef74b0

File tree

6 files changed

+117
-2
lines changed

6 files changed

+117
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# Changelog
22

33

4+
## 1.3.3 - 2024-09-14
5+
* [#14](https://github.com/alipay/global-open-sdk-php/pull/14) update pay
6+
* update:alipayPayRequest
7+
* add:payments/syncArrear
8+
* add:payments/createDeviceCertificate
9+
410
## 1.3.2 - 2024-09-04
511
* [#13](https://github.com/alipay/global-open-sdk-php/pull/13) update readme
612
* Add TAOBAO_REBIND

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
```
22
Language:PHP
33
PHP version:5.4.7+
4-
Releass ^1.3.1
4+
Releass ^1.3.3
55
Copyright:Ant financial services group
66
```
77

example/PayTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ function createSession()
182182
$alipayClient = new DefaultAlipayClient("https://open-sea-global.alipay.com", merchantPrivateKey, alipayPublicKey);
183183
$alipayResponse = $alipayClient->execute($request);
184184

185-
print(json_encode($alipayResponse));
185+
print($alipayResponse -> result);
186186
print("\n" . $paymentRequestId);
187187

188188
}

model/AntomPathConstants.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ class AntomPathConstants
1717
const CAPTURE_PATH = '/ams/api/v1/payments/capture';
1818
const INQUIRY_PAYMENT_PATH = '/ams/api/v1/payments/inquiryPayment';
1919
const CANCEL_PATH = '/ams/api/v1/payments/cancel';
20+
const SYNC_ARREAR_PATH = "/ams/api/v1/payments/syncArrear";
21+
const CREATE_DEVICE_CERTIFICATE_PATH = "/ams/api/v1/payments/createDeviceCertificate";
2022
const SUBSCRIPTION_CREATE_PATH = '/ams/api/v1/subscriptions/create';
2123
const SUBSCRIPTION_CHANGE_PATH = '/ams/api/v1/subscriptions/change';
2224
const SUBSCRIPTION_CANCEL_PATH = '/ams/api/v1/subscriptions/cancel';
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
<?php
2+
3+
namespace Request\pay;
4+
5+
use Model\AntomPathConstants;
6+
use Request\AlipayRequest;
7+
8+
class AlipayDeviceCertificateRequest extends AlipayRequest
9+
{
10+
11+
public $devicePublicKey;
12+
13+
public $deviceRequestId;
14+
15+
16+
function __construct()
17+
{
18+
$this->setPath(AntomPathConstants::CREATE_DEVICE_CERTIFICATE_PATH);
19+
}
20+
21+
/**
22+
* @return mixed
23+
*/
24+
public function getDevicePublicKey()
25+
{
26+
return $this->devicePublicKey;
27+
}
28+
29+
/**
30+
* @param mixed $devicePublicKey
31+
*/
32+
public function setDevicePublicKey($devicePublicKey): void
33+
{
34+
$this->devicePublicKey = $devicePublicKey;
35+
}
36+
37+
/**
38+
* @return mixed
39+
*/
40+
public function getDeviceRequestId()
41+
{
42+
return $this->deviceRequestId;
43+
}
44+
45+
/**
46+
* @param mixed $deviceRequestId
47+
*/
48+
public function setDeviceRequestId($deviceRequestId): void
49+
{
50+
$this->deviceRequestId = $deviceRequestId;
51+
}
52+
53+
54+
}
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<?php
2+
3+
namespace Request\pay;
4+
5+
use Model\AntomPathConstants;
6+
use Request\AlipayRequest;
7+
8+
class AlipaySyncArrearRequest extends AlipayRequest
9+
{
10+
public $paymentId;
11+
public $paymentRequestId;
12+
13+
function __construct()
14+
{
15+
$this->setPath(AntomPathConstants::SYNC_ARREAR_PATH);
16+
}
17+
18+
/**
19+
* @return mixed
20+
*/
21+
public function getPaymentId()
22+
{
23+
return $this->paymentId;
24+
}
25+
26+
/**
27+
* @param mixed $paymentId
28+
*/
29+
public function setPaymentId($paymentId): void
30+
{
31+
$this->paymentId = $paymentId;
32+
}
33+
34+
/**
35+
* @return mixed
36+
*/
37+
public function getPaymentRequestId()
38+
{
39+
return $this->paymentRequestId;
40+
}
41+
42+
/**
43+
* @param mixed $paymentRequestId
44+
*/
45+
public function setPaymentRequestId($paymentRequestId): void
46+
{
47+
$this->paymentRequestId = $paymentRequestId;
48+
}
49+
50+
51+
52+
53+
}

0 commit comments

Comments
 (0)