首页 > 其他分享 >vue2接入paypal支付

vue2接入paypal支付

时间:2024-03-09 20:23:15浏览次数:26  
标签:console log script 接入 paypal vue2 data id

 

paypal支付,官网

实例

引入cdn

在加载该组件时就读取脚本

data() {
    return {
      clientId:'AbJmdo6IqMHBMfgJVP-qWfFacVBBDOE45hOJGp8_XpZ1uq4ytOzOPDX4jw2p0pUTPmNptRA40BEqgdXf', // paypal客户端id
    };
 },
mounted() {
    this.initScript()
  },
methods: {
    // 加载paypal脚本
    initScript(){
      const setLoaded = ()=>{
      // console.log('初始化--加载script')
      }
      // 在页面中创建script标签
      const script = document.createElement("script");
      // 给script标签加src 链接到paypal
      // script.src = "https://www.paypal.com/sdk/js?client-id=YOU_CLIENT_id";
      // 测试连接  沙盒
      // script.src = "https://www.paypal.com/sdk/js?client-id=test&components=buttons,marks";
      script.src = `https://www.paypal.com/sdk/js?client-id=${this.clientId}`;
      script.addEventListener("load", setLoaded);
      document.body.appendChild(script);
    }
}

 

渲染生成元素组件

通过监听变化,再初始化渲染组件

<div ref="paypalBtnBox"></div>
watch: {
    visible: {
      handler(val, oldVal) {
        this.popupStatus = val;
        if (val) {
          this.paypalResultStatus = false;
          if (window.paypal) {
            // console.log("已加载---");
            let _this = this;
            this.$nextTick(() => {
              _this.initPaypal(_this);
            });
          } else {
            // console.log("未加载---");
          }
        }
      },
      deep: true,
      immediate: true,
    },
},
methods: {
    // 初始化paypal组件
    async initPaypal(_this) {
      _this.$refs.paypalBtnBox.innerHTML = ''; // 清空元素内容
      window.paypal
        .Buttons({
          style: {
            layout: 'vertical',//按钮样式
            color: 'gold',//颜色
            shape: 'pill',//
            label: 'checkout',//按钮文本
            tagline: false //
          },
          // locale: 'zh_CN',//按钮的语言
          async createOrder() {
            // 创建
            try {
              //创建订单xgemBuyPaypal
              const response = await xgemBuyPaypal(_this.paypalOrder)
                .then((resp) => {
                  _this.paypalRespond = resp?.data;
                  // console.log("--paypal---resp", _this.paypalRespond);
                  return _this.paypalRespond;
                })
                .catch((err) => {
                  _this.$notice.error(err);
                  return Promise.reject(err);
                });
              const orderData = await response;
              if (orderData?.payPalOrderId) {
                return orderData?.payPalOrderId;
              } else {
                const errorDetail = orderData?.details?.[0];
                const errorMessage = errorDetail
                  ? `${errorDetail.issue} ${errorDetail.description} (${orderData.debug_id})`
                  : JSON.stringify(orderData);
                throw new Error(errorMessage);
              }
            } catch (err) {
              _this.$notice.error(err);
            }
          },
          async onApprove(data, actions) {
            // 用户支付回调
            await actions.order.capture()
                  .then((details) => {
                    // 支付成功
                    let orderNumber,orderAmount;
                    // 订单id
                    orderNumber = details.id;
                    //订单支付的金额
                    orderAmount = details.purchase_units[0].amount.value;
                    _this.goResultPage(true)
                    // console.log('支付成功---1-',details, orderNumber,orderAmount);
                  }).catch((err)=>{
                    //支付失败
                    _this.goResultPage(false)
                    // console.log('支付失败----',err)
                  });
            _this.paypalApprove(_this,data,actions)

          },
          onCancel: function(data) {
            // 在付款取消时执行的操作
            // console.log('在付款取消时执行的操作---',data)
          },
          onClick: function(data) {
            // 在点击支付按钮时执行的操作
            // console.log('在点击支付按钮时执行的操作---',data)
          },

        })
        .render(_this.$refs.paypalBtnBox);
    },
}
 

 

完整代码

 

引用

<PaypalPop 
           :visible="PaypalPopupStatus" 
           :paypal-order="paypalOrderParams" 
           @closeEvent="showPaypalPopEvent" 
           @success="paymentSuccess">
</PaypalPop>

PaypalPop.vue

查看代码
 <template>
  <div>
    <Popup
      class="popup-paypal"
      :closeable="paypalResultStatus?false:true"
      v-model="popupStatus"
      get-container="body"
      :close-on-click-overlay="false"
      :position="bottomOrCenter"
      @click.stop
      @close="handleClose(1)"
    >
      <div class="paypal-button-container-box" v-if="!paypalResultStatus">
        <div ref="paypalBtnBox"></div>
      </div>
      <PaypalResult v-else :atype="paypalResultType" @closeEvent="handleClose(2)"></PaypalResult>
    </Popup>
  </div>
</template>

<script>
import { reportOrderNFTPaypal } from "@/api/http.account";
import { xgemBuyPaypal } from "@/api/nft/http.nft";
import { Popup } from "vant";
import PaypalResult from "@/components/PaypalResult.vue";
export default {
  name: "Paypal",
  components: {
    Popup,
    PaypalResult,
  },
  props: {
    paypalOrder: Object,
    visible: Boolean,
  },
  // paypalOrder
  data() {
    return {
      popupStatus: this.visible,
      paypalRespond: null, // paypal创建订单后的回调
      reportOrder: null, // 上报的订单
      bottomOrCenter: "bottom",
      paypalResultStatus: false, // 是否显示结果
      paypalResultType: false, // 结果状态
      clientId:'AbJmdo6IqMHBMfgJVP-qWfFacVBBDOE45hOJGp8_XpZ1uq4ytOzOPDX4jw2p0pUTPmNptRA40BEqgdXf', // paypal客户端id
    };
  },
  watch: {
    visible: {
      handler(val, oldVal) {
        this.popupStatus = val;
        if (val) {
          this.paypalResultStatus = false;
          if (window.paypal) {
            // console.log("已加载---");
            let _this = this;
            this.$nextTick(() => {
              _this.initPaypal(_this);
            });
          } else {
            this.$notice.error(this.$t('fomo.FOMO_EGAIN'));
            // console.log("未加载---");
          }
        }
      },
      deep: true,
      immediate: true,
    },
  },
  created() {
  },
  mounted() {
    this.initScript()
  },
  methods: {
    //关闭当前弹窗,val:1为右上角的关闭 2为结果页的关闭
    handleClose(val) {
      this.popupStatus = false;
      this.$emit("closeEvent", val); //发送给子类 自定义方法
      return;
    },
    // 通过是判断paypal支付结果
    // this.goResultPage(true)  this.goResultPage(false);
    goResultPage(_type) {
      this.paypalResultStatus = true;
      this.paypalResultType = _type;
    },
    // paypal结果上报
    async paypalReport(_this) {
      //上报接口参数
      const paramsReport = {
        id: _this.paypalRespond?.id, // 外部支付订单ID
        payPalOrderId: _this.paypalRespond?.payPalOrderId, // PayPal Order ID
        result: _this.paypalResultType?1:2, // 支付结果:1-成功;2-取消
      };
      // console.log("上报的参数---", paramsReport);
      await reportOrderNFTPaypal(paramsReport)
        .then((resp) => {
          // console.log("上报结果--", resp);
          _this.reportOrder = resp?.data;
          _this.handleClose(2)
          _this.$emit('success');
          return _this.reportOrder;
        })
        .catch((err) => {
          //  this.$notice.error(_this.$t('order_paypal_Report_fail',{var1:'Paypal'}));
           this.$notice.error(_this.$t('account.order_payment_wait'));
        });
    },
    // 初始化paypal组件
    async initPaypal(_this) {
      _this.$refs.paypalBtnBox.innerHTML = ''; // 清空元素内容
      window.paypal
        .Buttons({
          style: {
            layout: 'vertical',//按钮样式
            color: 'gold',//颜色
            shape: 'pill',//
            label: 'checkout',//按钮文本
            tagline: false //
          },
          // locale: 'zh_CN',//按钮的语言
          async createOrder() {
            // 创建
            try {
              //创建订单xgemBuyPaypal
              const response = await xgemBuyPaypal(_this.paypalOrder)
                .then((resp) => {
                  _this.paypalRespond = resp?.data;
                  // console.log("--paypal---resp", _this.paypalRespond);
                  return _this.paypalRespond;
                })
                .catch((err) => {
                  _this.$notice.error(err);
                  return Promise.reject(err);
                });
              const orderData = await response;
              if (orderData?.payPalOrderId) {
                return orderData?.payPalOrderId;
              } else {
                const errorDetail = orderData?.details?.[0];
                const errorMessage = errorDetail
                  ? `${errorDetail.issue} ${errorDetail.description} (${orderData.debug_id})`
                  : JSON.stringify(orderData);
                throw new Error(errorMessage);
              }
            } catch (err) {
              _this.$notice.error(err);
            }
          },
          async onApprove(data, actions) {
            // 用户支付回调
            await actions.order.capture()
                  .then((details) => {
                    // 支付成功
                    let orderNumber,orderAmount;
                    // 订单id
                    orderNumber = details.id;
                    //订单支付的金额
                    orderAmount = details.purchase_units[0].amount.value;
                    _this.goResultPage(true)
                    // console.log('支付成功---1-',details, orderNumber,orderAmount);
                  }).catch((err)=>{
                    //支付失败
                    _this.goResultPage(false)
                    // console.log('支付失败----',err)
                  });
            _this.paypalApprove(_this,data,actions)

          },
          onCancel: function(data) {
            // 在付款取消时执行的操作
            // console.log('在付款取消时执行的操作---',data)
          },
          onClick: function(data) {
            // 在点击支付按钮时执行的操作
            // console.log('在点击支付按钮时执行的操作---',data)
          },

        })
        .render(_this.$refs.paypalBtnBox);
    },
    // paypal支付状态回调
    async paypalApprove(_this,data,actions){
      // console.log("paypal回调---", data, "-----", actions);
            try {
              const response = _this.paypalReport(_this);
              const orderData = await response;
            } catch (error) {
              console.error(error);
            }
    },
    // 加载paypal脚本
    initScript(){
      const setLoaded = ()=>{
      // console.log('初始化--加载script')
      }
      // 在页面中创建script标签
      const script = document.createElement("script");
      // 给script标签加src 链接到paypal
      // script.src = "https://www.paypal.com/sdk/js?client-id=YOU_CLIENT_id";
      // 测试连接  沙盒
      // script.src = "https://www.paypal.com/sdk/js?client-id=test&components=buttons,marks";
      script.src = `https://www.paypal.com/sdk/js?client-id=${this.clientId}`;
      script.addEventListener("load", setLoaded);
      document.body.appendChild(script);
    }
  },
};
</script>
<style lang="scss" scoped >
.popup-paypal{
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px 0;
}
.paypal-button-container-box{
  width: 70%;
}
</style>

 

PaypalResult.vue

 

查看代码
 <template>
  <div>
    <div style="font-size: 20px; margin:60px 20px; text-align: center;">  
        <img v-if="showBtn" style="width:46px;" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARQAAAETCAMAAADAqwnzAAAAqFBMVEUAAABp3c1h1Mlp3s1p3s1p3c1m38xo3c1l28pp3c1n4tJp3c1p3s1p3c1o3cxp3s1p3c1p3s5p3c1p3c1p3c1p3c1p3c1p3s1o3c1p3s1p3s1p3c1o3c1p3c1p3c1p3c1p3c1p3c1p3c1p3c1p3c1p3c1p3c1p3c1p3c1p3c1p3c1p3s1p3c1p3c1o3s5p3c1p3s5p3c1p3c1p3c1p3c1p3c1p3s1p3c3EvHZQAAAAN3RSTlMA+gP27vILDwgUBurg3Bgc0Ce3pWfkVtg4XOe8K4Gsnz5hM7F0yntD1JluIMFQI8ZIi5SGTI8vWthmjQAAGXVJREFUeNrkXNliqkgQpVllR0BEWWRHFETB5f//bGJm7kwm091gorG9cx7yFBWKOrWcqoZ6Dmh+mxzjrO9Wodkaa1VRluwbFEWdG7mXWt2hsJtoKtLU/wCSuEvKJt4U/amyUrPOrwZZyizLcswbOJaVl7OrYVovDVdvpslsp3SnGk/9lqB5QdN3y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U3pK7rjo3j5J5QtHZs6pj9EhBtvcSff2hUJIlg9PjNuJBLqWFo2t0a3gmb4+Uw2m4Zs29Adq+pwX4beIO7AbnbBftdUNutyewvQx4JZFOYiM0Gp52cbFnjs2RfV/fycwYgpvGi3jB/q7rKrqJsBlDsROoSh5kUPzsXwYsdB5up87Ze5iTTDVKeW4Ni9hoghwy7viz5f41AIevMCyBkr4AzhHBDlugsP1RiiVPEdGpNkHnKpWj+qYMxAD5qTqaOuIlEgRBRo3UW7Ss/N/qiY6FhNgmccTpf3MX7yg/I7iF0dpX25NwEG9uili5r/nOp8RV+E3q2OaqxM7bRZAvHPVl9VoDIE38f5q0Bn6AHtb0uWqu88imN44FslZnkeGll6r9pKBw17XTnHK97/5PFjQFT8aPQKWLT0CnCI1s+EN77Sbqhxae8u7h/ixZfERWeqP7dVnZtoHNwnGFUQt1dS1clvCz+XXp8RSHWJsqSrrm3xdK2suPA1AzD0HVKqX670Mwgtqs2LXa503Rhdm8zfvaYMQqR+OUhS6TGqXNvJwhFmhaCsNt59U2H5Hop3X9DhwdAVBRZ5nlyQ/0OucPLsqz8nR7yn7+BLxIIYpH4av1IAAAAAElFTkSuQmCC" />
        <p style="font-size:20px;color:#3F3F3F;">{{showBtn?'Success':'Failed'}}</p>
        <ButtonAsync class="btn-hollow" :async="closeWindow"> {{ $t("common.message_done") }}</ButtonAsync>
    </div>
  </div>
</template>  
  
<script>
import ButtonAsync from "@/components/ButtonAsync";
export default {
  name: "PaypalResult",
  components: {
    ButtonAsync,
  },
  props: {
    atype: Boolean,
  },
  data() {
    return {
      showBtn: false,// 成功失败
    };
  },
  watch: {
    atype: {
      handler(val, oldVal) {
        this.showBtn = val;
      },
      deep: true,
      immediate: true,
    },
  },
  created() {
    
  },
  async mounted() {
  },
  methods: {
    closeWindow(){
      this.showBtn = false;
      this.$emit("closeEvent", this.showBtn); //发送给子类 自定义方法
      return Promise.resolve();
    },
  },
};
</script>
<style lang="scss" scoped >
.btn-base{
  margin-top: 20px;
  width: 100%;
}
</style>

 

 

參考vue3接入paypal

https://perper.top/700/.html

标签:console,log,script,接入,paypal,vue2,data,id
From: https://www.cnblogs.com/miangao/p/18063224

相关文章

  • FastGPT接入白菜GPT一键部署教程
     注册会员领取免费API_KEY,内测期间,每天限30名会员免费注册,能注册就能领取API_KEY,无需充值,无需付费,免费使用ChatGPT,支持3.5/4白菜GPT简介白菜GPT旨在提供稳定高效且免费的OpenAIAPI转发服务,帮助国内GPT应用学习相关爱好者及从业者,提供便捷、低成本、长期稳定的GPT中转服......
  • springboot项目接入普罗米修斯
    为了更好查询项目的运行状态,这次引入普罗米修斯监控pom依赖<!--starter-actuator--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency><!--下面是/actuato......
  • vue2项目中不能直接在store中声明响应式变量,vue3项目中能在store中直接声明响应式变量
    vue2项目中不能直接在store中声明响应式变量,vue3项目中能在store中直接声明响应式变量,页面元素也会响应式生效在Vue2项目中,store中的状态默认情况下是不具备响应式的特性的。这是因为Vue2.x使用的是基于对象定义的Vue.observable()来创建响应式对象,而store中的状态是通......
  • Vue3.0 所采用的 Composition Api 与 Vue2.x 使用的 Options Api 有什么不同?
    这里给大家分享我在网上总结出来的一些知识,希望对大家有所帮助开始之前CompositionAPI 可以说是Vue3的最大特点,那么为什么要推出CompositionApi,解决了什么问题?通常使用Vue2开发的项目,普遍会存在以下问题:代码的可读性随着组件变大而变差每一种代码复用的方式,都存在缺点T......
  • vue2项目命令部署服务器
      1、添加命令、依赖  //package.json"deploy":"node./deploy/config.js"   "shelljs":"^0.8.5",   "scp2":"^0.5.0"2、添加环境变量 #自动部署VUE_APP_SERVER_ID=03、添加deploy文件夹 //dep......
  • A-10.30.0.23-接入-主
    SHDXYQB4-108-C-04_C-05-ASW-RGS6250-M1-01U37#showrun Buildingconfiguration...Currentconfiguration:15621bytesversion11.0(5)B9P120hostnameSHDXYQB4-108-C-04_C-05-ASW-RGS6250-M1-01U37privilegeexecalllevel1showrunning-configprivilegeexeclevel......
  • A-10.30.0.24-接入-备
    SHDXYQB4-108-C-04_C-05-ASW-RGS6250-M2-01U37#showrunBuildingconfiguration...Currentconfiguration:15059bytesversion11.0(5)B9P120hostnameSHDXYQB4-108-C-04_C-05-ASW-RGS6250-M2-01U37privilegeexecalllevel1showrunning-configprivilegeexeclevel1......
  • B-万兆业务接入-C-07-ASW-RGS6250-01U37 leaf-2
    设备编码:SHDXYQB4-108-C-07_C-07-ASW-RGS6250-M2-01U40_37带外地址:10.30.0.44hostnameSHDXYQB4-108-C-07_C-07-ASW-RGS6250-M2-01U40_37novrfglobal-vrf!vrfdefinitionNET-managedescriptionFor_NetworkManagerd1:1address-familyipv4exit-address-familyad......
  • D平台接入B10.30.0.48_2024.03.05
     YDSJYC2-105-A-01-ASW-RGS6520-M1-01U26#showrunYDSJYC2-105-A-01-ASW-RGS6520-M1-01U26#showrunning-configBuildingconfiguration...Currentconfiguration:15429bytesversion11.0(5)B9P120hostnameYDSJYC2-105-A-01-ASW-RGS6520-M1-01U26privilegeexecalll......
  • D平台接入A10.30.0.47_2024.03.05
     YDSJYC2-105-A-02-ASW-RGS6520-M2-01U26#showrunYDSJYC2-105-A-02-ASW-RGS6520-M2-01U26#showrunning-configBuildingconfiguration...Currentconfiguration:14428bytesversion11.0(5)B9P120hostnameYDSJYC2-105-A-02-ASW-RGS6520-M2-01U26!load-balance-profil......