         } else {
             request.setValue(PaymentRequest.jsonHeader, forHTTPHeaderField: "Accept")
         }
-
+        addBitpayPartnerHeaders(request: request)
         URLSession.shared.dataTask(with: request as URLRequest) { data, response, error in
             guard error == nil else { return completion(nil) }
             guard let data = data else { return completion(nil) }

        request.httpMethod = "POST"
        request.setValue("application/bitcoin-payment", forHTTPHeaderField: "Content-Type")
        request.addValue("application/bitcoin-paymentack", forHTTPHeaderField: "Accept")
        request.httpBody = payment?.encode()
        print("[PAY] Sending PaymentProtocolPayment to: \(url)")
        URLSession.shared.dataTask(with: request as URLRequest) { data, response, error in

            }.resume()
    }
}

private func addBitpayPartnerHeaders(request: NSMutableURLRequest) {
    // ["BP_PARTNER": "brd", "BP_PARTNER_VERSION": "4.0"]
    request.setValue(PaymentRequest.bitPayPartnerValue, forHTTPHeaderField: PaymentRequest.bitPayPartnerKey)
    let version = Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String ?? "0.0"
    request.setValue(version, forHTTPHeaderField: PaymentRequest.bitPayPartnerVersionKey)
}
