任何人都可以帮我解决这个问题吗? 我根据zooz API文档编写代码。查看zooz API文档here,我的主要关注点是这个区域,我根据这个得到了paymentToken,但从此开始,我需要得到" PaymentMethodToken"通过此中给出的代码。
我在javascript中进行此集成,代码如下。
<html>
<head>
<script type="text/javascript" src="https://sandbox.zooz.com"></script>
<script type="text/javascript">
var initParams = {
"isSandbox": true,
uniqueId: "PAPI_ZooZNP_OYMISN3HZ6ZJFL6LSYV4WAYLOQ_5"
};
var zoozApi = new Zooz.Ext.External(initParams);
var succFunc = function(data) {}
var failFunc = function(data) {}
var paymentRequest =
{
"paymentToken": "BKS7Y3Y2KD3VWVXKRGVKEXTMGE",
"email": "johndou@zooz.com",
"paymentMethod": {
"paymentMethodType": "CreditCard",
"paymentMethodDetails": {
"cardNumber": "4580458045804580",
"month": "08",
"year": "17",
"cvvNumber": "123"
}
}
};
var status = zoozApi.addPaymentMethod(paymentRequest,succFunc, failFunc);
</script>
</head>
<body></body>
</html>
答案 0 :(得分:1)
遵循zooz API文档here,您应该在网页的head部分中包含以下JavaScript文件:
library(dplyr)
tmp_frame %>%
group_by(grp = cut(t_avg_sim, seq(0, 1, by = 0.05), include.lowest = TRUE)) %>%
summarise(Mean = mean(event))
因此,您应该从
更改<script type="text/javascript" src="<Zooz Environment>/mobile/checkoutapi/js/checkout-ext-api.js"></script>
到
<script type="text/javascript" src="https://sandbox.zooz.com"></script>