README.md in alipay-0.7.1 vs README.md in alipay-0.8.0
- old
+ new
@@ -108,21 +108,23 @@
#### Example
```ruby
Alipay::Service.send_goods_confirm_by_platform(
trade_no: '201504010000001',
- logistics_name: 'example.com'
+ logistics_name: 'example.com',
+ transport_type: 'DIRECT'
)
# => '<!xml version="1.0" encoding="utf-8"?><alipay><is_success>T</is_success></alipay>'
```
#### Arguments
| Key | Requirement | Description |
| --- | ----------- | ----------- |
| trade_no | required | Trade number in Alipay system, should get from notify message. |
| logistics_name | required | Logistics Name. |
+| transport_type/create_transport_type | required | Allowed values: POST, EXPRESS, EMS, DIRECT. |
This is not a complete list of arguments, please read official document: http://download.alipay.com/public/api/base/alipayescow.zip .
### 即时到账收款接口
@@ -358,34 +360,61 @@
| reason | required | Refun reason. |
| gmt_return | required * | YYYYMMDDHHMMSS Beijing Time. |
\* Auto set Time.now if not set.
-### 快捷支付(无线)
+### 验证通知
#### Name
```ruby
+notify_verify
+```
+
+#### Definition
+
+```ruby
+Alipay::Notify.verify?({PARAMS}, {OPTIONS})
+```
+
+#### Example
+
+```ruby
+# Rails
+# params except :controller_name, :action_name, :host, etc.
+notify_params = params.except(*request.path_parameters.keys)
+
+Alipay::Notify.verify?(notify_params)
+```
+
+## Mobile::Service
+
+### 移动支付接口
+
+#### Name
+
+```ruby
mobile.securitypay.pay
```
#### Definition
```ruby
-Alipay::Service.mobile_security_pay_url({ARGUMENTS}, {OPTIONS})
+Alipay::Mobile::Service.mobile_security_pay_string({ARGUMENTS}, {OPTIONS})
```
#### Example
```ruby
-Alipay::Service.mobile_security_pay_url(
+Alipay::Mobile::Service.mobile_security_pay_string(
out_trade_no: '20150401000-0001',
notify_url: 'https://example.com/orders/20150401000-0001/notify'
subject: 'subject',
total_fee: '10.00',
body: 'text'
)
+# => service="mobile.securitypay.pay"&_input_charset="utf-8"&partner=...
```
#### ARGUMENTS
| Key | Requirement | Description |
@@ -398,34 +427,10 @@
\* This service only support RSA sign_type.
This is not a complete list of arguments, please read official document: http://download.alipay.com/public/api/base/WS_MOBILE_PAY_SDK_BASE.zip .
-### 验证通知
-
-#### Name
-
-```ruby
-notify_verify
-```
-
-#### Definition
-
-```ruby
-Alipay::Notify.verify?({PARAMS}, {OPTIONS})
-```
-
-#### Example
-
-```ruby
-# Rails
-# params except :controller_name, :action_name, :host, etc.
-notify_params = params.except(*request.path_parameters.keys)
-
-Alipay::Notify.verify?(notify_params)
-```
-
## Wap::Service
### 授权接口
#### Name
@@ -483,16 +488,16 @@
```
#### Definition
```ruby
-Alipay::Wap::Service.auth_and_execute({ARGUMENTS}, {OPTIONS})
+Alipay::Wap::Service.auth_and_execute_url({ARGUMENTS}, {OPTIONS})
```
#### Example
```ruby
-Alipay::Wap::Service.auth_and_execute(request_token: token)
+Alipay::Wap::Service.auth_and_execute_url(request_token: token)
```
#### ARGUMENTS
| Key | Requirement | Description |
| --- | ----------- | ----------- |