pub struct Ccbc {
pub appid: String,
pub appid_subscribe: String,
pub pass: String,
pub sp_mchid: String,
pub notify_url: String,
pub posid: String,
pub branchid: String,
pub public_key: String,
pub client_ip: String,
pub wechat_mchid: String,
pub retry: usize,
}Expand description
建设银行
Fields§
§appid: String微信小程序APPID
appid_subscribe: String微信公众号APPID
pass: String登录密码
sp_mchid: String银行服务商号
notify_url: String通知地址
posid: String商户柜台代码
branchid: String分行代码
public_key: String二级商户公钥
client_ip: String§wechat_mchid: String微信服务商号
retry: usize重试次
Implementations§
Trait Implementations§
Source§impl PayMode for Ccbc
impl PayMode for Ccbc
fn config(&mut self) -> JsonValue
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