<?php
...
use Otnansirk\Dana\Facades\DANAPay;
...
$orderData = [
[
"order" => [
"orderTitle" => "Dummy product",
"orderAmount" => [
"currency" => "IDR",
"value" => "100"
],
"merchantTransId" => "201505080001",
"merchantTransType" => "dummy transaction type",
"orderMemo" => "Memo",
"goods" => [
[
"merchantGoodsId" => "24525635625623",
"description" => "dummy description",
"category" => "dummy category",
"price" => [
"currency" => "IDR",
"value" => "100"
],
"unit" => "Kg",
"quantity" => "3.2",
"merchantShippingId" => "564314314574327545",
"snapshotUrl" => "[http://snap.url.com]",
"extendInfo" => [
"key" => "value",
]
]
]
],
"merchantId" => "216820000000006553000",
"subMerchantId" => "12345678",
"productCode" => "51051000100000000001"
];
DANAPay::createOrder($orderData);