Skip to content

Commit

Permalink
Merge pull request #9 from MarkRady/master
Browse files Browse the repository at this point in the history
Fix issue with sdk doesnt send callback_url to web-service
  • Loading branch information
ecleel authored Dec 18, 2017
2 parents df768c9 + 06abfb4 commit ca6f6c3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Moyasar/Payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,17 @@ class Payment
const SOURCE = "source";
const SADAD = "sadad";
const CREDIT_CARD = "creditcard";
const CALLBACK_URL = "callback_url";

public static function create($amount, $source, $description = "", $currency = "SAR")
public static function create($amount, $source, $description = "", $currency = "SAR", $callback_url)
{

$data = [
self::AMOUNT => $amount,
self::SOURCE => $source,
self::DESCRIPTION => $description,
self::CURRENCY => $currency
self::CURRENCY => $currency,
self::CALLBACK_URL => $callback_url
];

if (empty($description)) {
Expand Down

0 comments on commit ca6f6c3

Please sign in to comment.