Coder Social home page Coder Social logo

xshaheen / xdot-paymob Goto Github PK

View Code? Open in Web Editor NEW
24.0 24.0 5.0 314 KB

.NET SDK to help you integrate with the Paymob’s payment gateway.

License: Apache License 2.0

PowerShell 1.61% C# 97.04% Batchfile 0.11% Shell 1.24%
csharp dotnet dotnet-core payment

xdot-paymob's Introduction

Hi everyone 👋

🔭 I’m Mahmoud Shaheen

⚡ I’m on LinkedIn: www.linkedin.com/in/xshaheen/

My Tools 🛠️💻

csharp dotnet-core mysql csharp react angular visual studio git

More stuff about me

Technologies 📜

  • C# / .NET
  • ASP.NET Core
  • Entity Framework | Dapper
  • SQL Server
  • CosmosDb
  • SignalR
  • JavaScript | TypeScript
  • HTML, CSS
  • SCSS
  • Angular | React | Nextjs
  • Azure

What I'm currently learning 📚

  • SOA
  • Event-driven architecture
  • NoSQL
  • More about TypeScript

xdot-paymob's People

Contributors

ahmednfwela avatar chmsajid7 avatar dependabot[bot] avatar xshaheen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

xdot-paymob's Issues

I Got 401

Describe the bug

i did all the steps in the describtion but got Paymob Cash In - Http request failed with status code (401).

Steps to reproduce

nothing just run the code
var amountCents = 1000; // 10 LE
var orderRequest = CashInCreateOrderRequest.CreateOrder(amountCents);
var orderResponse = await _broker.CreateOrderAsync(orderRequest);

		// Request card payment key.
		var billingData = new CashInBillingData(
			firstName: "Mahmoud",
			lastName: "Shaheen",
			phoneNumber: "010000000",
			email: "[email protected]");

		var paymentKeyRequest = new CashInPaymentKeyRequest(
			integrationId: 123,
			orderId: orderResponse.Id,
			billingData: billingData,
			amountCents: amountCents);

		var paymentKeyResponse = await _broker.RequestPaymentKeyAsync(paymentKeyRequest);

		// Create iframe src.
		return _broker.CreateIframeSrc(iframeId: "776060", token: paymentKeyResponse.PaymentKey);

Expected behaviour

it should return iframe link

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.