README.md in alipay-0.6.0 vs README.md in alipay-0.7.0
- old
+ new
@@ -7,11 +7,11 @@
## Installation
Add this line to your application's Gemfile:
```ruby
-gem 'alipay', '~> 0.6.0'
+gem 'alipay', '~> 0.7.0'
```
And then execute:
```console
@@ -21,11 +21,10 @@
## Configuration
```ruby
Alipay.pid = 'YOUR_PID'
Alipay.key = 'YOUR_KEY'
-Alipay.seller_email = 'YOUR_SELLER_EMAIL'
#Alipay.sign_type = 'MD5' # Available values: MD5, RSA. Default is MD5
#Alipay.debug_mode = true # Enable parameter check. Default is true.
```
@@ -36,11 +35,10 @@
out_trade_no: 'OUT_TRADE_NO',
# Order params...
}, {
pid: 'ANOTHER_PID',
key: 'ANOTHER_KEY',
- seller_email: 'ANOTHER_SELLER_EMAIL'
})
```
## Service
@@ -443,10 +441,11 @@
#### Example
```ruby
token = Alipay::Wap::Service.trade_create_direct_token(
req_data: {
+ seller_account_name: 'account@example.com',
out_trade_no: '20150401000-0001',
subject: 'Subject',
total_fee: '10.0',
call_back_url: 'https://example.com/orders/20150401000-0001',
notify_url: 'https://example.com/orders/20150401000-0001/notify'
@@ -462,9 +461,10 @@
##### req_data ARGUMENTS
| Key | Requirement | Description |
| --- | ----------- | ----------- |
+| seller_account_name | required | Alipay seller account. |
| out_order_no | required | Order id in your application. |
| subject | required | Order subject. |
| total_fee | required | Order total price. |
| return_url | optional | Redirect customer to this url after payment. |
| notify_url | optional | Alipay asyn notify url. |