-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
2 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,68 +12,5 @@ | |
<form action="https://pay3.chinabank.com.cn/Payto" method="post" accept-charset="unicode"><INPUT type="hidden" name="v_mid" value="21701769" > <INPUT type="hidden" name="v_id" value="134566" > <INPUT type="hidden" name="v_url" value="http://www.tuanao.com/today" > <INPUT type="hidden" name="quantity" value="1" > <INPUT type="hidden" name="v_amount" value="55" >网银在线:<INPUT type="image" src="http://merchant3.chinabank.com.cn/images/button_2.gif" ></form> | ||
</div> | ||
|
||
<h1>提交表单</h1> | ||
<p>1. CREATE_DIRECT_PAY_BY_USER 即时到账</p> | ||
<% payment_service_for 'payment code', ActiveMerchant::Billing::Integrations::Alipay::ACCOUNT, | ||
:service => :alipay, | ||
:html => { :id => 'payment-form', :method => :get } do |service| -%> | ||
<% service.total_fee 0.02 -%> | ||
<% service.seller :email => ActiveMerchant::Billing::Integrations::Alipay::EMAIL -%> | ||
<% service.notify_url url_for(:only_path => false, :action => 'notify') -%> | ||
<% service.return_url url_for(:only_path => false, :action => 'done') -%> | ||
<% service.show_url url_for(:only_path => false, :action => 'show') -%> | ||
<% service.body 'payment body' -%> | ||
<% service.charset "utf-8" -%> | ||
<% service.service ActiveMerchant::Billing::Integrations::Alipay::Helper::CREATE_DIRECT_PAY_BY_USER -%> | ||
<% service.payment_type 1 -%> | ||
<% service.subject 'payment subject' -%> | ||
<% service.sign -%> | ||
<% end -%> | ||
<%= button_to_function "Submit", "document.getElementById('payment-form').submit();" %> | ||
<%#==================================================================%> | ||
<p>2. CREATE_PARTNER_TRADE_BY_BUYER 担保交易</p> | ||
<% payment_service_for 'payment code', ActiveMerchant::Billing::Integrations::Alipay::ACCOUNT, | ||
:service => :alipay, | ||
:html => { :id => 'payment-form', :method => :get } do |service| %> | ||
<% service.discount -0.01 %> | ||
<% service.price 0.01 %> | ||
<% service.quantity 2 %> | ||
<% service.seller :email => ActiveMerchant::Billing::Integrations::Alipay::EMAIL %> | ||
<%# service.buyer :id => 'buyer_id' %> | ||
<% service.notify_url url_for(:only_path => false, :action => 'notify') %> | ||
<% service.return_url url_for(:only_path => false, :action => 'done') %> | ||
<% service.show_url url_for(:only_path => false, :action => 'show') %> | ||
<% service.body 'payment body' %> | ||
<% service.charset "utf-8" %> | ||
<% service.service ActiveMerchant::Billing::Integrations::Alipay::Helper::CREATE_PARTNER_TRADE_BY_BUYER %> | ||
<% service.payment_type 1 %> | ||
<% service.subject 'payment subject' %> | ||
<% service.agent ActiveMerchant::Billing::Integrations::Alipay::ACCOUNT %> | ||
<% service.logistics :type => 'EXPRESS', :fee => 0.10, :payment => 'BUYER_PAY' %> | ||
<% service.receive :name => '黄志敏', :address => '上海市静安中华大厦1808室', :zip => 'xxxxxx', :phone => 'xxxxxxxxxxx', :mobile => 'xxxxxxxxxxx' %> | ||
<% service.sign %> | ||
<% end %> | ||
<%= button_to_function "Submit", "document.getElementById('payment-form').submit();" %> | ||
|
||
<%#==================================================================%> | ||
<p>3.TRADE_CREATE_BY_BUYER 标准双接口</p> | ||
<% payment_service_for 'payment code', ActiveMerchant::Billing::Integrations::Alipay::ACCOUNT, | ||
:service => :alipay, | ||
:html => { :id => 'payment-form', :method => :get } do |service| %> | ||
<% service.discount -0.01 %> | ||
<% service.price 0.01 %> | ||
<% service.quantity 2 %> | ||
<% service.seller :email => ActiveMerchant::Billing::Integrations::Alipay::EMAIL %> | ||
<% service.notify_url url_for(:only_path => false, :action => 'notify') %> | ||
<% service.return_url url_for(:only_path => false, :action => 'done') %> | ||
<% service.show_url url_for(:only_path => false, :action => 'show') %> | ||
<% service.body 'payment body' %> | ||
<% service.charset "utf-8" %> | ||
<% service.service ActiveMerchant::Billing::Integrations::Alipay::Helper::TRADE_CREATE_BY_BUYER %> | ||
<% service.payment_type 1 %> | ||
<% service.subject 'payment subject' %> | ||
<% service.logistics :type => 'EXPRESS', :fee => 0.10, :payment => 'BUYER_PAY' %> | ||
<% service.receive :name => '黄志敏', :address => '上海市静安中华大厦1808室', :zip => 'xxxxxx', :phone => 'xxxxxxxxxxx', :mobile => 'xxxxxxxxxxx' %> | ||
<% service.sign %> | ||
<% end %> | ||
<%= button_to_function "Submit", "document.getElementById('payment-form').submit();" %> | ||
<hr/> | ||
<h2><a target="_blank" href="https://www.alipay.com/cooperate/gateway.do?partner=2088102635663013&body=payment+body&out_trade_no=payment+code&service=create_direct_pay_by_user&return_url=http%3A%2F%2Fwww.tuanao.com%2Forders%2Fdone&total_fee=0.02&subject=payment+subject&_input_charset=utf-8&show_url=http%3A%2F%2Fwww.tuanao.com%2Forders%2F10&sign=947caa6fa86442dc35ee5186f464efc0¬ify_url=http%3A%2F%2Fwww.tuanao.com%2Forders%2Fnotify&payment_type=1&sign_type=MD5&[email protected]">支付宝支付接口</a></h2> |