Info
Version: | 1.0.1 |
Author(s): | Gray Labs |
Last Update: | Monday, October 5, 2020 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://github.com/norrisboat/SlydepayAndroidSDK |
NuGet Url: | https://www.nuget.org/packages/GrayLabs.Android.NorrisBoat.SydepayAndroidSDK |
Install
Install-Package GrayLabs.Android.NorrisBoat.SydepayAndroidSDK
dotnet add package GrayLabs.Android.NorrisBoat.SydepayAndroidSDK
paket add GrayLabs.Android.NorrisBoat.SydepayAndroidSDK
GrayLabs.Android.NorrisBoat.SydepayAndroidSDK Download (Unzip the "nupkg" after downloading)
Dependencies
Tags
1.
Initialize sdk preferably in your Application class to avoid initializing it multiple time.
new SlydepayPayment(this).InitCredentials("email", "hgyghgfggjhhfch");
2. Performing transactions.
PayWithSlydepay.Pay(this, "itemName", 4.8, "description", "customerName", "customerEmail", "orderCode", "phoneNumber", 800);
protected override void OnActivityResult(int requestCode, [GeneratedEnum] Result resultCode, Intent data)
{
base.OnActivityResult(requestCode, resultCode, data);
if (requestCode == 800)
{
switch (resultCode)
{
case Result.Ok:
//Payment was successful
break;
case Result.Canceled:
//Payment failed
break;
case Result.FirstUser:
//Payment was cancelled by user
break;
}
}
}.