Skip to content

Commit

Permalink
Add ApplePay integration (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
onurpolattimur authored Oct 10, 2023
1 parent 883a014 commit 9b2f80b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Adapter/PaymentAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,12 @@ public function updatePaymentTransaction($paymentTransactionId, array $request)
return $this->httpPut($path, $request);
}

public function createApplePayMerchantSession(array $request)
{
$path = "/payment/v1/apple-pay/merchant-sessions";
return $this->httpPost($path, $request);
}

public function is3DSecureCallbackVerified($threeDSecureCallbackKey, $params)
{
$hash = $params["hash"];
Expand Down
8 changes: 8 additions & 0 deletions src/Model/TokenizedCardType.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

namespace Craftgate\Model;

class TokenizedCardType
{
const APPLE_PAY = 'APPLE_PAY';
}

0 comments on commit 9b2f80b

Please sign in to comment.