Giter VIP home page Giter VIP logo

demo-csharp's Introduction

Demo tích hợp ZaloPay cho C#

Demo các phương thức tích hợp cho C# (ASP.NET MVC)

Cài đặt

  1. SQLServer / MySQL
  2. Thay đổi AppSettings trong Web.config
<appSettings>
  <!-- ... -->
  
  <!-- ZaloPay Config -->
  <add key="Appid" value="553" />
  <add key="Key1" value="9phuAOYhan4urywHTh0ndEXiV3pKHr5Q" />
  <add key="Key2" value="Iyz2habzyr7AG8SgvoBCbKwKi3UzlLi3" />
  <add key="RSAPublicKey" value="MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAOfB6/x0b5UiLkU3pOdcnXIkuCSzmvlVhDJKv1j3yBCyvsgAHacVXd+7WDPcCJmjSEKlRV6bBJWYam5vo7RB740CAwEAAQ==" />
  
  <!-- ... -->
</appSettings>
  1. Thay đổi ConnectionString
<connectionStrings>
  <!-- SQL Server -->
  <add name="ZaloPayDemoSqlServer" providerName="System.Data.SqlClient" connectionString="Server=.\SQLEXPRESS;Database=zalopay-demo;User Id=zlpdemo;Password=123456;" />
  <!-- MySQL -->
  <add name="ZaloPayDemoMysql" providerName="Mysql.Data.MysqlClient" connectionString="server=127.0.0.1;database=zalopay-demo;uid=root;charset=utf8;" />
</connectionStrings>

Các API tích hợp trong Demo

  • Xử lý callback
  • Xử lý Redirect
  • Thanh toán QR
  • Cổng ZaloPay
  • QuickPay
  • Mobile Web to App
  • Hoàn tiền
  • Lấy trạng thái đơn hàng
  • Lấy trạng thái hoàn tiền
  • Lấy danh sách ngân hàng

demo-csharp's People

Contributors

dungpqt avatar linhdmn avatar zpmep avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.