README.md in alipay-0.6.0.beta3 vs README.md in alipay-0.6.0

- old
+ new

@@ -2,26 +2,18 @@ A unofficial alipay ruby gem. Alipay official document: https://b.alipay.com/order/techService.htm . -Master branch(v0.6.0) is in develop, checkout [v0.5.0](https://github.com/chloerei/alipay/tree/v0.5.0) if you want to use in production. - ## Installation Add this line to your application's Gemfile: ```ruby -gem 'alipay', '~> 0.6.0.beta3' +gem 'alipay', '~> 0.6.0' ``` -or master branch: - -```ruby -gem 'alipay', github: 'chloerei/alipay' -``` - And then execute: ```console $ bundle ``` @@ -365,9 +357,49 @@ | currency | required | Abbreviated currency name. | | reason | required | Refun reason. | | gmt_return | required * | YYYYMMDDHHMMSS Beijing Time. | \* Auto set Time.now if not set. + +### 快捷支付(无线) + +#### Name + +```ruby +mobile.securitypay.pay +``` + +#### Definition + +```ruby +Alipay::Service.mobile_security_pay_url({ARGUMENTS}, {OPTIONS}) +``` + +#### Example + +```ruby +Alipay::Service.mobile_security_pay_url( + out_trade_no: '20150401000-0001', + notify_url: 'https://example.com/orders/20150401000-0001/notify' + subject: 'subject', + total_fee: '10.00', + body: 'text' +) +``` + +#### ARGUMENTS + +| Key | Requirement | Description | +| --- | ----------- | ----------- | +| out_trade_no | required | Order number in your application. | +| notify_url | required | Alipay asyn notify url. | +| subject | required | Order subject. | +| total_fee | required | Order total price. | +| body | required | Order body, less than 512 bytes. | + +\* 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