pub struct Ccbc {Show 13 fields
pub debug: bool,
pub appid: String,
pub appid_subscribe: String,
pub sp_mchid: String,
pub sp_user_id: String,
pub sp_pass: String,
pub sp_posid: String,
pub notify_url: String,
pub sub_posid: String,
pub branchid: String,
pub public_key: String,
pub client_ip: String,
pub retry: usize,
}Expand description
建设银行
Fields§
§debug: bool调试
appid: String微信小程序APPID
appid_subscribe: String微信公众号APPID
sp_mchid: String服务商号
sp_user_id: String服务商账号ID
sp_pass: String服务商登录密码
sp_posid: String通知地址 服务商柜台代码
notify_url: String§sub_posid: String商户商柜台代码
branchid: String分行代码
public_key: String二级商户公钥
client_ip: String§retry: usize重试次
Implementations§
Source§impl Ccbc
impl Ccbc
pub fn http(&mut self, url: &str, body: JsonValue) -> Result<JsonValue, String>
pub fn http_alipay( &mut self, url: &str, body: JsonValue, ) -> Result<JsonValue, String>
pub fn http_q( &mut self, url: &str, body: JsonValue, ) -> Result<JsonValue, String>
pub fn http_ccb_param( &mut self, url: &str, body: JsonValue, ) -> Result<JsonValue, String>
pub fn make_ccb_param(&mut self, body: JsonValue) -> Result<String, String>
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 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, channel: &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