@blocklet/payment-react
Version:
Reusable react components for payment kit v2
16 lines (15 loc) • 406 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getDidConnectQueryParams = getDidConnectQueryParams;
function getDidConnectQueryParams(params) {
const didConnectQueryParams = {
switchBehavior: "auto",
showClose: false,
...params
};
return {
"__did-connect__": Buffer.from(JSON.stringify(didConnectQueryParams), "utf8").toString("base64")
};
}