README.md in alipay-0.8.0 vs README.md in alipay-0.9.0
- old
+ new
@@ -7,11 +7,11 @@
## Installation
Add this line to your application's Gemfile:
```ruby
-gem 'alipay', '~> 0.7.1'
+gem 'alipay', '~> 0.9.0'
```
And then execute:
```console
@@ -144,12 +144,11 @@
```ruby
Alipay::Service.create_direct_pay_by_user_url(
out_trade_no: '20150401000-0001',
subject: 'Order Name',
- price: '10.00',
- quantity: 12,
+ total_fee: '10.00',
return_url: 'https://example.com/orders/20150401000-0001',
notify_url: 'https://example.com/orders/20150401000-0001/notify'
)
```
@@ -157,19 +156,54 @@
| Key | Requirement | Description |
| --- | ----------- | ----------- |
| out_order_no | required | Order id in your application. |
| subject | required | Order subject. |
-| price | required * | Order item's price. |
-| quantity | required * | Order item's quantity, total price is price * quantity. |
+| total_fee | required | Order's total fee. |
| return_url | optional | Redirect customer to this url after payment. |
| notify_url | optional | Alipay asyn notify url. |
-\* Can be replaced by total_fee. When total_fee is set, price and quantity could not be set.
-
This is not a complete list of arguments, please read official document: http://download.alipay.com/public/api/base/alipaydirect.zip .
+### 手机网站支付接口
+
+#### Name
+
+```ruby
+alipay.wap.create.direct.pay.by.user
+```
+
+#### Definition
+
+```ruby
+Alipay::Service.create_direct_pay_by_user_wap_url({ARGUMENTS}, {OPTIONS})
+```
+
+#### Example
+
+```ruby
+Alipay::Service.create_direct_pay_by_user_wap_url(
+ out_trade_no: '20150401000-0001',
+ subject: 'Order Name',
+ total_fee: '10.00',
+ return_url: 'https://example.com/orders/20150401000-0001',
+ notify_url: 'https://example.com/orders/20150401000-0001/notify'
+)
+```
+
+#### Arguments
+
+| Key | Requirement | Description |
+| --- | ----------- | ----------- |
+| out_order_no | required | Order id in your application. |
+| subject | required | Order subject. |
+| total_fee | required | Order's total fee. |
+| return_url | optional | Redirect customer to this url after payment. |
+| notify_url | optional | Alipay asyn notify url. |
+
+This is not a complete list of arguments, please read official document: http://download.alipay.com/public/api/base/alipaywapdirect.zip .
+
### 即时到账批量退款有密接口
#### Name
```ruby
@@ -397,17 +431,17 @@
```
#### Definition
```ruby
-Alipay::Mobile::Service.mobile_security_pay_string({ARGUMENTS}, {OPTIONS})
+Alipay::Mobile::Service.mobile_securitypay_pay_string({ARGUMENTS}, {OPTIONS})
```
#### Example
```ruby
-Alipay::Mobile::Service.mobile_security_pay_string(
+Alipay::Mobile::Service.mobile_securitypay_pay_string(
out_trade_no: '20150401000-0001',
notify_url: 'https://example.com/orders/20150401000-0001/notify'
subject: 'subject',
total_fee: '10.00',
body: 'text'
@@ -427,10 +461,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 .
-## Wap::Service
+## Wap::Service (Deprecated)
### 授权接口
#### Name