Skip to content

Commit

Permalink
Add init checkout payments for deposit (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
beratallahverdi committed Jul 4, 2024
1 parent 832cf42 commit 445f0d9
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions samples/init_checkout_payment_for_deposit.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
,<?php

require_once('config/sample_config.php');

use Craftgate\Model\Currency;
use Craftgate\Model\PaymentGroup;

$request = array(
'price' => 100,
'paidPrice' => 100,
'currency' => Currency::TL,
'paymentGroup' => PaymentGroup::PRODUCT,
'conversationId' => '456d1297-908e-4bd6-a13b-4be31a6e47d5',
'callbackUrl' => 'https://www.your-website.com/craftgate-checkout-callback',
'depositPayment' => true
);

$response = SampleConfig::craftgate()->payment()->initCheckoutPayment($request);

print_r($response);

0 comments on commit 445f0d9

Please sign in to comment.