summaryrefslogtreecommitdiffstats
path: root/Telegram/SourceFiles/payments/payments_form.cpp
diff options
context:
space:
mode:
authorJohn Preston <johnprestonmail@gmail.com>2023-12-22 20:51:50 -0400
committerJohn Preston <johnprestonmail@gmail.com>2023-12-22 20:52:11 -0400
commit1d345299f57d83bd7e9b2d576625fc44a4c1dc5e (patch)
tree5de87f14ffeb9d053e6e1485c21c1a1fd207b1fb /Telegram/SourceFiles/payments/payments_form.cpp
parentfc50d5c30f8b1221f4a74e903e7d4eb9c97caa96 (diff)
Allow smartglocal to customize tokenize url.
Diffstat (limited to 'Telegram/SourceFiles/payments/payments_form.cpp')
-rw-r--r--Telegram/SourceFiles/payments/payments_form.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Telegram/SourceFiles/payments/payments_form.cpp b/Telegram/SourceFiles/payments/payments_form.cpp
index 5eea983534..9ff737d1ca 100644
--- a/Telegram/SourceFiles/payments/payments_form.cpp
+++ b/Telegram/SourceFiles/payments/payments_form.cpp
@@ -675,6 +675,7 @@ void Form::fillSmartGlocalNativeMethod(QJsonObject object) {
_paymentMethod.native = NativePaymentMethod{
.data = SmartGlocalPaymentMethod{
.publicToken = key,
+ .tokenizeUrl = value(u"tokenize_url").toString(),
},
};
_paymentMethod.ui.native = Ui::NativeMethodDetails{
@@ -1011,6 +1012,7 @@ void Form::validateCard(
}
auto configuration = SmartGlocal::PaymentConfiguration{
.publicToken = method.publicToken,
+ .tokenizeUrl = method.tokenizeUrl,
.isTest = _invoice.isTest,
};
_smartglocal = std::make_unique<SmartGlocal::APIClient>(