#NEWLINE# def test_create_respects_verify_card_and_verification_merchant_account_id_when_outside_nonce( self ) : #NEWLINE# #INDENT# config = Configuration . instantiate ( ) #NEWLINE# customer_id = Customer . create ( ) . customer . id #NEWLINE# client_token = json . loads ( TestHelper . generate_decoded_client_token ( ) ) #NEWLINE# authorization_fingerprint = client_token [ 'authorizationFingerprint' ] #NEWLINE# http = ClientApiHttp ( config , { #NEWLINE# #INDENT# 'authorization_fingerprint' : authorization_fingerprint , #NEWLINE# 'shared_customer_identifier' : 'fake_identifier' , #NEWLINE# 'shared_customer_identifier_type' : 'testing' , #NEWLINE# #UNINDENT# } ) #NEWLINE# ( status_code , nonce ) = http . get_credit_card_nonce ( { #NEWLINE# #INDENT# 'number' : '4000111111111115' , #NEWLINE# 'expirationMonth' : '11' , #NEWLINE# 'expirationYear' : '2099' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertTrue ( ( status_code == 201 ) ) #NEWLINE# result = PaymentMethod . create ( { #NEWLINE# #INDENT# 'payment_method_nonce' : nonce , #NEWLINE# 'customer_id' : customer_id , #NEWLINE# 'options' : { #NEWLINE# #INDENT# 'verify_card' : 'true' , #NEWLINE# 'verification_merchant_account_id' : TestHelper . non_default_merchant_account_id , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertFalse ( result . is_success ) #NEWLINE# self . assertTrue ( ( result . credit_card_verification . status == Transaction . Status . ProcessorDeclined ) ) #NEWLINE# self . assertTrue ( ( result . credit_card_verification . processor_response_code == '2000' ) ) #NEWLINE# self . assertTrue ( ( client_token . credit_card_verification . processor_response_text == 'Do Not Honor' ) ) #NEWLINE# self . assertTrue ( ( result . credit_card_verification . merchant_account_id == TestHelper . non_default_merchant_account_id ) )