付款后使用jquery重定向到asp.net中的成功页面使用条带付款 [英] after payment redirect to successful page in asp.net using jquery for payment using stripe

查看:60
本文介绍了付款后使用jquery重定向到asp.net中的成功页面使用条带付款的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在asp.net页面上使用strip后付款必须重定向到成功的页面..

i尝试做但没有什么工作



这是m代码,我不知道付款后页面会显示多少。



以及放置重定向代码的位置



After payment using strip in asp.net page must redirect to successful page ..
i had try to do but nothing is working

this is m code , i don't know after payment how successful page will show.

and where to put redirect code

<script>
    var handler = StripeCheckout.configure({
        key: 'pk_test_sdasdaer124asdasdfsr421414sdads;,
        image: 'images/mm.jpg',
        token: function (token) {
            // Use the token to create the charge with a server-side script.
            // You can access the token ID with `token.id`
        }
    });

    $('#customButton').on('click', function (e) {
        // Open Checkout with further options
        handler.open({
            name: 'demo profile',
            description: 'Create your website',
            amount: 2000

        });

        e.preventDefault();

    });

    // Close Checkout on page navigation
    $(window).on('popstate', function () {

        handler.close();

    });

</script>

推荐答案

(' #customButton < span class =code-string>' )。on(' click ' < span class =code-string>,function(e){
//打开Checkout,带有更多选项
handler.open({
name:' demo profile '
description:'
创建您的网站'
金额:2000

});

e.preventDefault();

});

//关闭页面导航结帐
('#customButton').on('click', function (e) { // Open Checkout with further options handler.open({ name: 'demo profile', description: 'Create your website', amount: 2000 }); e.preventDefault(); }); // Close Checkout on page navigation


(窗口).on(' popstate ' ,function(){

handler.close();

});

< / script>
(window).on('popstate', function () { handler.close(); }); </script>


这篇关于付款后使用jquery重定向到asp.net中的成功页面使用条带付款的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆