diff --git a/public_html/wp-content/plugins/wordcamp-qbo/wordcamp-qbo.php b/public_html/wp-content/plugins/wordcamp-qbo/wordcamp-qbo.php index e568da843..e536229fd 100644 --- a/public_html/wp-content/plugins/wordcamp-qbo/wordcamp-qbo.php +++ b/public_html/wp-content/plugins/wordcamp-qbo/wordcamp-qbo.php @@ -493,6 +493,10 @@ protected static function build_qbo_create_invoice_request( int $invoice_id ) { * for the first time, so we don't need any code to automatically activate them. */ if ( 'USD' != $currency_code ) { + /* + * Fetch currency exchange rates from QBO. + * No caching implemented since QBO updates rates every 4 hours and API calls are only triggered on invoice approval. + */ $response = wp_remote_get( sprintf( '%s/v3/company/%d/exchangerate?sourcecurrencycode=%s',