File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -846,7 +846,7 @@ class PaymentProcessorClientFactory:
846
846
@staticmethod
847
847
def create_payment_processor_client (credentials : dict ) -> PaymentProcessorClient :
848
848
processor_type : str = credentials .get ('processor' )
849
- if processor_type .lower () == PaymentProcessorType .AUTHORIZE_DOT_NET_TYPE :
849
+ if processor_type .lower () == PaymentProcessorType .AUTHORIZE_DOT_NET_TYPE . lower () :
850
850
return AuthorizeNetPaymentProcessorClient (
851
851
api_login_id = credentials .get ('api_login_id' ), transaction_key = credentials .get ('transaction_key' )
852
852
)
Original file line number Diff line number Diff line change @@ -687,12 +687,12 @@ def post_purchase_privileges_request_model(self) -> Model:
687
687
properties = {
688
688
'dataDescriptor' : JsonSchema (
689
689
type = JsonSchemaType .STRING ,
690
- description = 'The card number ' ,
690
+ description = 'The opaque data descriptor returned by Authorize.Net Accept UI ' ,
691
691
max_length = 100 ,
692
692
),
693
693
'dataValue' : JsonSchema (
694
694
type = JsonSchemaType .STRING ,
695
- description = 'The card expiration date ' ,
695
+ description = 'The opaque data value token returned by Authorize.Net Accept UI ' ,
696
696
max_length = 1000 ,
697
697
),
698
698
},
Original file line number Diff line number Diff line change @@ -139,7 +139,7 @@ def test_synth_generates_post_purchases_privileges_endpoint_resources(self):
139
139
self .compare_snapshot (
140
140
actual = post_purchase_privilege_request_model ['Schema' ],
141
141
snapshot_name = 'PURCHASE_PRIVILEGE_REQUEST_SCHEMA' ,
142
- overwrite_snapshot = True ,
142
+ overwrite_snapshot = False ,
143
143
)
144
144
145
145
# now check the response matches expected contract
Original file line number Diff line number Diff line change 79
79
"opaqueData" : {
80
80
"properties" : {
81
81
"dataDescriptor" : {
82
- "description" : " The card number " ,
82
+ "description" : " The opaque data descriptor returned by Authorize.Net Accept UI " ,
83
83
"maxLength" : 100 ,
84
84
"type" : " string"
85
85
},
86
86
"dataValue" : {
87
- "description" : " The card expiration date " ,
87
+ "description" : " The opaque data value token returned by Authorize.Net Accept UI " ,
88
88
"maxLength" : 1000 ,
89
89
"type" : " string"
90
90
}
You can’t perform that action at this time.
0 commit comments