/
Validation rule: Validate_transaction_currency

Attention: Confluence is not suitable for the storage of highly confidential data. Please ensure that any data classified as Highly Protected is stored using a more secure platform.
If you have any questions, please refer to the University's data classification guide or contact ict.askcyber@sydney.edu.au

Validation rule: Validate_transaction_currency

Validation rule Details

Name

Validate_transaction_currency

Label

Validate_transaction_currency

Object

bt_stripe__Transaction__c

Active

Yes

Formula

/* Validate the transaction currency and the default currency on PG are the same for Authorize.net provider */
AND($Setup.bt_stripe__Transaction_Validation_Rules__c.bt_stripe__TR_Currency_Validation__c,
ISPICKVAL(bt_stripe__Payment_Gateway__r.bt_stripe__Provider__c, "Authorize.net"),
NOT(ISBLANK(TEXT(bt_stripe__Payment_Gateway__r.bt_stripe__Default_Currency__c))),
TEXT(bt_stripe__Payment_Gateway__r.bt_stripe__Default_Currency__c) <> TEXT(bt_stripe__Currency_ISO__c)
)

Error message

The currency on transaction does not match with the currency of the related Payment Gateway

Error location

Top of Page

Related content

Validation rule: Validate_write_off_non_gateway
Validation rule: Validate_write_off_non_gateway
More like this
Validation rule: Micro_Deposit_Field_Value_Greater_Than_1
Validation rule: Micro_Deposit_Field_Value_Greater_Than_1
More like this
Validation rule: Non_Negative_Integer_Required
Validation rule: Non_Negative_Integer_Required
More like this
Validation rule: ValidateFeePercentage
Validation rule: ValidateFeePercentage
More like this
Validation rule: Must_Be_Valid_Email_Format
Validation rule: Must_Be_Valid_Email_Format
More like this
Validation rule: Days_Until_Due_Set
Validation rule: Days_Until_Due_Set
More like this