README.md in alipay-0.15.1 vs README.md in alipay-0.15.2
- old
+ new
@@ -54,15 +54,15 @@
### Create a payment
```ruby
@alipay_client.page_execute_url(
method: 'alipay.trade.page.pay',
- biz_content: {
+ biz_content: JSON.generate({
out_trade_no: '20160401000000',
product_code: 'FAST_INSTANT_TRADE_PAY',
total_amount: '0.01',
subject: 'test'
- }.to_json(ascii_only: true), # to_json(ascii_only: true) is important!
+ }, ascii_only: true), # ascii_only is important!
timestamp: '2016-04-01 00:00:00'
)
# This method will then return a payment url
# => 'https://openapi.alipaydev.com/gateway.do?app_id=201600...'