Example #1
0
 def update_signature():
     signature = [
         "billing_address_id",
         "cardholder_name",
         "cvv",
         "device_session_id",
         "expiration_date",
         "expiration_month",
         "expiration_year",
         "number",
         "token",
         "venmo_sdk_payment_method_code",
         "device_data",
         "fraud_merchant_id",
         "payment_method_nonce",
         {
             "options": [
                 "make_default",
                 "verify_card",
                 "verification_merchant_account_id",
                 "venmo_sdk_session",
                 {
                     "adyen": [
                         "overwrite_brand",
                         "selected_brand"
                     ]
                 }
             ]
         },
         {
             "billing_address": Address.update_signature() + [{"options": ["update_existing"]}]
         }
     ]
     return signature
Example #2
0
 def update_signature():
     signature = [
         "billing_address_id",
         "cardholder_name",
         "cvv",
         "device_session_id",
         "expiration_date",
         "expiration_month",
         "expiration_year",
         "number",
         "token",
         "venmo_sdk_payment_method_code",
         "device_data",
         "fraud_merchant_id",
         "payment_method_nonce",
         {"options": [
             "make_default",
             "verify_card",
             "verification_merchant_account_id",
             "venmo_sdk_session"
             ]
         },
         {"billing_address" :
             Address.update_signature() +
             [{"options": ["update_existing"]}]
         }
     ]
     return signature
 def update(self, customer_id, address_id, params={}):
     Resource.verify_keys(params, Address.update_signature())
     response = self.config.http().put(
         "/customers/" + customer_id + "/addresses/" + address_id,
         {"address": params}
     )
     if "address" in response:
         return SuccessfulResult({"address": Address(self.gateway, response["address"])})
     elif "api_error_response" in response:
         return ErrorResult(self.gateway, response["api_error_response"])
 def update(self, customer_id, address_id, params={}):
     Resource.verify_keys(params, Address.update_signature())
     response = self.config.http().put(
         "/customers/" + customer_id + "/addresses/" + address_id,
         {"address": params}
     )
     if "address" in response:
         return SuccessfulResult({"address": Address(self.gateway, response["address"])})
     elif "api_error_response" in response:
         return ErrorResult(self.gateway, response["api_error_response"])
    def update_signature():
        three_d_secure_pass_thru = [
            "cavv",
            "ds_transaction_id",
            "eci_flag",
            "three_d_secure_version",
            "xid"
        ]

        signature = [
            "billing_address_id",
            "cardholder_name",
            "cvv",
            "device_session_id",
            "expiration_date",
            "expiration_month",
            "expiration_year",
            "number",
            "token",
            "venmo_sdk_payment_method_code",
            "device_data",
            "fraud_merchant_id",
            "payment_method_nonce",
            {
                "options": [
                    "make_default",
                    "us_bank_account_verification_method",
                    "verify_card",
                    "verification_amount",
                    "verification_merchant_account_id",
                    "verification_account_type",
                    "venmo_sdk_session",
                    {
                        "adyen": [
                            "overwrite_brand",
                            "selected_brand"
                        ]
                    }
                ]
            },
            {
                "billing_address": Address.update_signature() + [{"options": ["update_existing"]}]
            },
            {
                "three_d_secure_pass_thru": three_d_secure_pass_thru
            }
        ]
        return signature