File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ def create(cls,
73
73
def create_for_psd2 (cls ,
74
74
environment_type : ApiEnvironmentType ,
75
75
certificate : str ,
76
- private_key : RsaKey ,
76
+ private_key : str ,
77
77
all_chain_certificate : List [str ],
78
78
description : str ,
79
79
all_permitted_ip : List [str ] = None ,
@@ -116,13 +116,13 @@ def _initialize_installation(self) -> None:
116
116
117
117
def _initialize_psd2_credential (self ,
118
118
certificate : str ,
119
- private_key : RsaKey ,
119
+ private_key : str ,
120
120
all_chain_certificate : List [str ], ) -> UserCredentialPasswordIp :
121
121
session_token = self .installation_context .token
122
122
client_key_pair = self .installation_context .private_key_client
123
123
124
124
string_to_sign = security .public_key_to_string (client_key_pair .publickey ()) + session_token
125
- encoded_signature = security .generate_signature (string_to_sign , private_key )
125
+ encoded_signature = security .generate_signature (string_to_sign , security . rsa_key_from_string ( private_key ) )
126
126
127
127
payment_response_provider = PaymentServiceProviderCredentialInternal .create_with_api_context (
128
128
certificate ,
You can’t perform that action at this time.
0 commit comments