pub struct Yrcc {
pub appid: String,
pub secret: String,
pub terminal_number: String,
pub sp_mchid: String,
pub service_provider: String,
pub key_name: String,
pub app_private: String,
pub app_public: String,
pub notify_url: String,
}Expand description
农村商业银行
Fields§
§appid: String服务商APPID
secret: String密钥
terminal_number: String终端号
sp_mchid: String服务商商户号
service_provider: String服务商号
key_name: String密钥名称
app_private: StringSM2私钥
app_public: String银行公钥
notify_url: String通知
Implementations§
Trait Implementations§
Source§impl PayMode for Yrcc
impl PayMode for Yrcc
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, _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 Yrcc
impl RefUnwindSafe for Yrcc
impl Send for Yrcc
impl Sync for Yrcc
impl Unpin for Yrcc
impl UnwindSafe for Yrcc
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