README.md in alipay-0.13.0 vs README.md in alipay-0.14.0
- old
+ new
@@ -7,11 +7,11 @@
## Installation
Add this line to your application's Gemfile:
```ruby
-gem 'alipay', '~> 0.13.0'
+gem 'alipay', '~> 0.14.0'
```
And then execute:
```console
@@ -200,10 +200,56 @@
| 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
+create_forex_trade_wap
+```
+
+#### Definition
+
+```ruby
+Alipay::Service.create_forex_trade_wap_url({ARGUMENTS}, {OPTIONS})
+```
+
+#### Example
+
+```ruby
+Alipay::Service.create_forex_trade_wap_url(
+ out_trade_no: '20150401000-0001',
+ subject: 'Order Name',
+ merchant_url: 'http://example.com/itemback',
+ total_fee: '10.00', #or rmb_fee, only one
+ currency: 'USD',
+ 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. |
+| merchant_url | required | The link which customer could jump back to merchant page from Alipay cashier. |
+| total_fee or rmb_fee | required | Order's total fee. |
+| currency | required | currency type. |
+| 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: https://global.alipay.com/product/mobilepayments.html .
+
+
### 即时到账批量退款有密接口
#### Name
```ruby
@@ -486,10 +532,10 @@
```ruby
# Rails
# params except :controller_name, :action_name, :host, etc.
notify_params = params.except(*request.path_parameters.keys)
-Alipay::Notify.verify?(notify_params)
+Alipay::Notify.verify?(notify_params, options = {})
```
## Mobile::Service
### 移动支付接口