Payumoney EXTENSION .aix payment gateway

howto

#1

I tried to make using https://editor.appybuilder.com/
but getting errors . coding given below for
i am new to learn java so please. help me to put right code in editor. thanks .

used following sources https://developer.payumoney.com/android/
and https://github.com/payu-intrepos/payumoney-new-sample-app

coding used as follows

/** ~~~~~

  • Created with the AppyBuilder Code Editor.
  • This is a template for basic Extension.
  • Modify this template to customize your extension.
  • **** NOTE: DO NOT use a package name.
  • **** The package name will be created for you automatically.
  • **** Adding a package name will cause a compile error
    /
    import android.content.Context;
    import android.util.Log;
    import com.google.appinventor.components.annotations.
    ;
    import com.google.appinventor.components.runtime.*;
    import com.google.appinventor.components.common.ComponentCategory;

@DesignerComponent(version = 1, description = “This Extension was created with the AppyBuilder Code Editor.
” +
“Create your own here:
https://editor.appybuilder.com
”,
category = ComponentCategory.EXTENSION,
nonVisible = true, iconName = “http://appyBuilder.com/extensions/icons/extension.png”)
@SimpleObject(external = true)
public class Payutest extends AndroidNonvisibleComponent {
private ComponentContainer container;
/**
* @param container container, component will be placed in
*/
public Payutest(ComponentContainer container) {
super(container.$form());
this.container = container;
}

@SimpleFunction(description = "Stores a value in TinyDB")
public void StoreValue(final String tag, final String valueToStore) {
    TinyDB tinyDB = new TinyDB(container);
    tinyDB.StoreValue(tag, valueToStore);
}

@SimpleFunction(description = "Retrieves value of a tag")
public Object GetValue(final String tag, final Object valueIfTagNotThere) {
    TinyDB tinyDB = new TinyDB(container);
    return tinyDB.GetValue(tag, valueIfTagNotThere);
}

{
@Override
public String merchant_Key() {
return “hdmyFIhF”;
}
@Override
public String merchant_ID() {
return “5762611”;
}
@Override
public String furl() {
return “https://www.payumoney.com/mobileapp/payumoney/failure.php”;
}

    @Override
    public String surl() {
        return "https://www.payumoney.com/mobileapp/payumoney/success.php";
    }

    @Override
    public String salt() {
        return "veIjJ317hE";
    }

    @Override
    public boolean debug() {
        return false;
    }
};

public abstract String merchant_Key();

public abstract String merchant_ID();

public abstract String furl();

public abstract String surl();

public abstract String salt();

public abstract boolean debug();

}

}


#2

How can i download the aix?


#3

where u add its dependencies & implementation files ???


#4

Sorry I tried but not get syntax how to and where to add it . Can you pl elaborate. Thanks


#5

Android SDK - PayUmoney Developer Guide Payment Gateway Integration.pdf (601.8 KB)


#6

@Shivendra_Kr_Sahu
i request you to please share the aix. Im not familiar with extensions