pub struct Ccbc {}Expand description
建设银行
Fields§
§appid: String服务商APPID
secret: String密钥
pass: String登录密码
mchid: String银行商户号
sp_mchid: String微信商户号
notify_url: String通知地址
posid: String商户柜台代码
branchid: String分行代码
smername: String二级商户名称
smertypeid: String二级商户类别代码
smertype: String二级商户类别名称
public_key: String二级商户公钥
client_ip: StringImplementations§
Trait Implementations§
Source§impl PayMode for Ccbc
impl PayMode for Ccbc
fn notify(&mut self, _data: JsonValue) -> Result<JsonValue, String>
fn config(&mut self) -> JsonValue
fn auth(&mut self, _code: &str) -> Result<JsonValue, String>
Source§fn pay(
&mut self,
channel: &str,
types: Types,
_sub_mchid: &str,
out_trade_no: &str,
description: &str,
total_fee: f64,
sp_openid: &str,
) -> Result<JsonValue, String>
fn pay( &mut self, channel: &str, types: Types, _sub_mchid: &str, out_trade_no: &str, description: &str, total_fee: f64, sp_openid: &str, ) -> Result<JsonValue, String>
支付 Read more
fn micropay( &mut self, channel: &str, auth_code: &str, _sub_mchid: &str, out_trade_no: &str, description: &str, total_fee: f64, _org_openid: &str, _ip: &str, ) -> Result<JsonValue, String>
Source§fn close(
&mut self,
_out_trade_no: &str,
_sub_mchid: &str,
) -> Result<JsonValue, String>
fn close( &mut self, _out_trade_no: &str, _sub_mchid: &str, ) -> Result<JsonValue, String>
关闭订单
Source§fn pay_query(
&mut self,
out_trade_no: &str,
_sub_mchid: &str,
) -> Result<JsonValue, String>
fn pay_query( &mut self, out_trade_no: &str, _sub_mchid: &str, ) -> Result<JsonValue, String>
订单查询 Read more
fn pay_micropay_query( &mut self, _out_trade_no: &str, _sub_mchid: &str, ) -> Result<JsonValue, String>
Source§fn pay_notify(
&mut self,
_nonce: &str,
_ciphertext: &str,
_associated_data: &str,
) -> Result<JsonValue, String>
fn pay_notify( &mut self, _nonce: &str, _ciphertext: &str, _associated_data: &str, ) -> Result<JsonValue, String>
支付成功通知
Source§fn refund(
&mut self,
_sub_mchid: &str,
_out_trade_no: &str,
_transaction_id: &str,
_out_refund_no: &str,
_amount: f64,
_total: f64,
_currency: &str,
) -> Result<JsonValue, String>
fn refund( &mut self, _sub_mchid: &str, _out_trade_no: &str, _transaction_id: &str, _out_refund_no: &str, _amount: f64, _total: f64, _currency: &str, ) -> Result<JsonValue, String>
订单退款
fn micropay_refund( &mut self, _sub_mchid: &str, _out_trade_no: &str, _transaction_id: &str, _out_refund_no: &str, _amount: f64, _total: f64, _currency: &str, _refund_text: &str, ) -> Result<JsonValue, String>
Source§fn refund_notify(
&mut self,
_nonce: &str,
_ciphertext: &str,
_associated_data: &str,
) -> Result<JsonValue, String>
fn refund_notify( &mut self, _nonce: &str, _ciphertext: &str, _associated_data: &str, ) -> Result<JsonValue, String>
退款通知
Auto Trait Implementations§
impl Freeze for Ccbc
impl RefUnwindSafe for Ccbc
impl Send for Ccbc
impl Sync for Ccbc
impl Unpin for Ccbc
impl UnwindSafe for Ccbc
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more