Buggy code:
String APP_ID ; String PUBLISHABLE_KEY ; public Context getApplicationContext ( ) { } public static interface PiggateBeaconCallback { public void DeviceNotCompatible ( ) { } public void BluetoothNotConnect ( ) { } public void PreScanning ( ) { } public void onReady ( ) { } public void onErrorScanning ( ) { } public void GetNewBeacons ( ArrayList < PiggateBeacon > beacons ) { } public void GetBeacons ( ArrayList < PiggateBeacon > beacons ) { } } public static interface PiggateCallBack { public void onComplete ( int statusCode , Header [ ] headers , String msg , JSONObject data ) { } public void onError ( int statusCode , Header [ ] headers , String msg , JSONObject data ) { } public void onComplete ( int statusCode , Header [ ] headers , String msg , JSONArray data ) { } public void onError ( int statusCode , Header [ ] headers , String msg , JSONArray data ) { } } interface PreCallable { void call ( ) { } } public void setListenerBeacon ( Piggate . PiggateBeaconCallback callBack ) { } public void postNotification ( String title , String msg , Class myClass , int resource , Bundle extras , Boolean force ) { } public void postNotification ( String title , String msg , Class myClass , int resource , Boolean force ) { } public void postNotification ( String title , String msg , Class myClass , int resource ) { } public void postNotification ( String title , String msg , Class myClass , int resource , Bundle extras ) { } public ArrayList < PiggateCard > get_creditCards ( ) { } public void set_creditCards ( ArrayList < PiggateCard > _creditCards ) { } public ArrayList < PiggateOffers > get_offersToExchange ( ) { } public void set_offersToExchange ( ArrayList < PiggateOffers > _offersToExchange ) { } public void addCreditCard ( PiggateCard creditCard ) { } public static class Request { private Piggate _caller ; private RequestParams _params ; private String _method ; private String _url ; private Piggate . PiggateCallBack _callBack ; private JsonHttpResponseHandler _rest_callback ; private Piggate . PreCallable _precallable ; private Request ( Piggate caller ) { } public Piggate . Request setListenerRequest ( Piggate . PiggateCallBack callBack ) { } public void exec ( ) { } private void run ( Runnable hilo ) { } } public static String getMetadata ( Context context , String name ) { } public Piggate ( Activity activity ) { } public Piggate ( Application app ) { } public Piggate ( Service service ) { } public Piggate ( Context context ) { } public Piggate ( Activity activity , BaseBridge bridge ) { } public Piggate ( Application app , BaseBridge bridge ) { } public Piggate ( Context context , BaseBridge bridge ) { } public void cancelRequests ( boolean mayInterruptIfRunning ) { } public void cancelAllRequests ( boolean mayInterruptIfRunning ) { } private void internal_constructor ( Context context , BaseBridge bridge ) { } public void reload ( ) { } public void onDestroy ( ) { } public void onStart ( ) { } public void onStop ( ) { } public void onActivityResult ( int requestCode , int resultCode , Intent data ) { } public Piggate . Request RequestNewUser ( RequestParams params ) { } public Piggate . Request RequestOpenSession ( RequestParams params ) { } public Piggate . Request RequestCloseSession ( ) { } public static long getDateDiff ( Date date1 , Date date2 ) { } public static long getDateDiff ( Date date1 , Date date2 , TimeUnit timeUnit ) { } public Piggate . Request RequestOffers ( final PiggateBeacon beacon ) { } public Piggate . Request RequestUser ( ) { } public Piggate . Request RequestGetNotification ( ) { } public Piggate . Request RequestBuy ( RequestParams params ) { final Piggate . Request request = new Piggate . Request ( this ) ; request . _method = "POST" ; request . _params = params ; <START_BUG> request . _url = "client//stripe//charge" ; <END_BUG> request . _rest_callback = new JsonHttpResponseHandler ( ) { @ Override public void onFailure ( int statusCode , Header [ ] headers , Throwable e , JSONArray response ) { } @ Override public void onFailure ( int statusCode , Header [ ] headers , Throwable throwable , JSONObject response ) { String msg = "" ; if ( response != null ) { try { msg = response . getString ( "error" ) ; } catch ( JSONException a ) { } catch ( NullPointerException a ) { } } if ( ( request . _callBack ) != null ) { request . _callBack . onError ( statusCode , headers , msg , ( ( JSONObject ) ( null ) ) ) ; } } @ Override public void onSuccess ( int statusCode , Header [ ] headers , JSONObject response ) { String msg = "" ; JSONObject obj = null ; if ( response != null ) { try { obj = response . getJSONObject ( "data" ) ; } catch ( JSONException a ) { } catch ( NullPointerException a ) { } try { msg = response . getString ( "success" ) ; } catch ( JSONException a ) { } catch ( NullPointerException a ) { } } if ( ( request . _callBack ) != null ) { request . _callBack . onComplete ( statusCode , headers , msg , obj ) ; } } @ Override public void onSuccess ( int statusCode , Header [ ] headers , JSONArray response ) { } } ; return request ; } public Piggate . Request RequestGetExchange ( ) { } public Piggate . Request RequestExchange ( RequestParams params , String offerID ) { } public Piggate . Request RequestInfo ( final PiggateBeacon beacon ) { } public ArrayList < PiggateOffers > getOffers ( ) { }

Fix:
request . _url = "stripe//charge" ;