pub struct Ccbc {
pub appid: String,
pub secret: String,
pub sp_mchid: String,
pub notify_url: String,
pub posid: String,
pub branchid: String,
pub smername: String,
pub smertypeid: String,
pub smertype: String,
}Expand description
建设银行
Fields§
§appid: String服务商APPID
secret: String密钥
sp_mchid: String服务商户号
notify_url: String通知地址
posid: String商户柜台代码
branchid: String分行代码
smername: String二级商户名称
smertypeid: String二级商户类别代码
smertype: String二级商户类别名称
Implementations§
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 login(&mut self, _code: &str) -> Result<JsonValue, String>
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