Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

Fix(router): fix QR data into image conversion (#4619)

AkshayaFoiger28ab36873b2a
diff --git a/crates/router/src/utils.rs b/crates/router/src/utils.rs
index 87cd95364d..059278a1b1 100644
--- a/crates/router/src/utils.rs
+++ b/crates/router/src/utils.rs
@@ -185,7 +185,7 @@ impl QrImage {
let image_data_source = format!(
"{},{}",
consts::QR_IMAGE_DATA_SOURCE_STRING,
- consts::BASE64_ENGINE.encode(image_bytes.get_ref().get_ref())
+ consts::BASE64_ENGINE.encode(image_bytes.buffer())
);
Ok(Self {
data: image_data_source,