Skip to content

samirgcofficial/IMEPAYMauiApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

IMEPay Native Plugin for .NET MAUI

IMEPay

Welcome to the IMEPay Plugin for .NET MAUI repository! Our Plugin provides seamless integration with IMEPay's payment gateway, enabling developers to quickly and securely accept payments in their .NET MAUI applications.

Features

  • Easy Integration: Integrate IMEPay's payment gateway into your .NET MAUI apps with just a few lines of code.
  • Secure Transactions: Ensure secure and encrypted payment transactions for your users.

Getting Started

To start using the IMEPay Plugin in your .NET MAUI project, follow these simple steps:

Installation: Install the IMEPay Plugin NuGet package in your .NET MAUI project.

dotnet add package Plugin.Maui.IMEPayMin --version 0.0.2

Plugin.Maui.IMEPayMin

NuGet

.NET MAUI Implementation (MainPage.xaml.cs)

public partial class MainPage : ContentPage
{
    public MainPage()
    {
        InitializeComponent();
    }

    private async void OnPayButtonClicked(object sender, EventArgs e)
    {
        var result = await IMEPayService.StartPaymentAsync(
            userName: "your_username", 
            password: "your_password",
            merchantCode: "merchant_code",
            merchantName: "Merchant Name",
            merchantUrl: "https://merchanturl.com",
            amount: "1000",
            referenceId: "order12345",
            module: "paymentModule",
            environment: APIEnvironment.Production);

        if (result.IsSuccess)
        {
            await DisplayAlert("Success", "Payment Successful!", "OK");
        }
        else
        {
            await DisplayAlert("Error", result.Message, "OK");
        }
    }
}

.csproj Implementation for iOS Platform (IMEPayMauiApp.csproj)

<PropertyGroup Condition="$(TargetFramework.Contains('-ios')) and '$(Configuration)' == 'Debug'">
    <ForceSimulatorX64ArchitectureInIDE>true</ForceSimulatorX64ArchitectureInIDE>
</PropertyGroup>
<PropertyGroup Condition="$(TargetFramework.Contains('-ios'))">
	<BaseOutputPath>..\..\..\..\..\temp\</BaseOutputPath>
</PropertyGroup>

Unlock the Full Version

For full version access, please contact us at [email protected]. The price is NRS 2500. Thank you!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages