Skip to content

Instantly share code, notes, and snippets.

View jasminsuljic's full-sized avatar

Jasmin Suljic jasminsuljic

View GitHub Profile

Merchant_key: MerDep012

Authenticity_token: c406cfc63b7ef89c63d5bbd9f99ce024709a076d

Request:

{"transaction_type":"purchase","amount":2130,"currency":"BAM","number_of_installments":"","order_number":"nedi1m-placanje","order_info":"Order info","language":"hr","ch_full_name":"John Doe","ch_address":"Elm street 22","ch_city":"Orgrimmar","ch_zip":"q123abc99","ch_country":"US","ch_phone":"123456","ch_email":"john.doe@email.com","comment":"","supported_payment_methods":[]}

Timestamp: 1597831100631

// kopirati ovo ispod za prikaz trgovaca
$('#merchant-droplist').show()
// za kompanije
$('#company-administrator-droplist').show()
// za agente
$('#agent-droplist').show()
$url = $protocol . $_SERVER['SERVER_NAME'] . dirname($_SERVER['REQUEST_URI']);
$full_url = $url.'?'.$_SERVER['QUERY_STRING'];
$url_parsed = parse_url(preg_replace('/&digest=[^&]*/', '', $full_url));
$calculated_url = $url_parsed['scheme'].'://'.$url_parsed['host'].$url_parsed['path'].'?'.$url_parsed['query'];
//Generate digest
$checkdigest = hash('sha512', $this->pikpaykey.$calculated_url);
<?php
namespace app\controllers;
use http\Exception\InvalidArgumentException;
use Yii;
use yii\base\Security;
use yii\helpers\Json;
use yii\helpers\Url;
use yii\helpers\VarDumper;
function examplesController() {
const express = require('express');
const app = express()
const port = 3001;
const authenticity_token = ''; // TODO - replace with value provided in merchant dashboard
const merchantKey = ''; // TODO - replace with value provided in merchant dashboard
const url = 'https://ipgtest.monri.com'; // TODO - in production env replace with https://ipg.monri.com
kind: List
apiVersion: v1
metadata: {}
items:
- apiVersion: v1
kind: Template
metadata:
name: apache-kafka
{
"id": "31bc18cf-b105-42d6-b950-13b4b84bb8dc",
"name": "Notifikacije",
"image": "https://huhu.ba/img/mobileapp/notifications.png"
},
public class Utils {
private static final String UNIQUE_DEVICE_ID = "unique_device_id";
private static String issuedId;
public static String getDeviceID(Context context) {
if (issuedId != null) {
return issuedId;
}
import Foundation
import RxSwift
import ObjectMapper
import AlamofireObjectMapper
class User:Mappable{
var username: String?
var age: Int?
//
// Extension.swift
//
// Created by Jasmin Suljic on 11/01/16.
// Copyright © 2016 Leftor d.o.o. All rights reserved.
//
import Foundation
import RxSwift
import RxBlocking