Skip to content

Commit

Permalink
Troubleshoot rave webhook
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyikwuje committed Nov 16, 2020
1 parent c728464 commit 8bcfce6
Show file tree
Hide file tree
Showing 14 changed files with 217 additions and 161 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,10 @@ All notable changes to `abegpay-php` will be documented in this file
## 1.0.0 - 201X-XX-XX

- initial release


You change the following:

Remove the code that set the email should incase the user didn't set pass an email through the $body parameter.
Does flutterwave has callback_url, isn't it redirect_url

19 changes: 15 additions & 4 deletions src/Helpers/DoSomething.php
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<?php
namespace ProcessWith\Helpers;

class DoSomething
final class DoSomething
{
/**
* Check if email is good
*
* @since 0.5
*/
public static function goodEmail(string $email): bool
final public static function goodEmail(string $email): bool
{
if(filter_var($email, FILTER_VALIDATE_EMAIL)) {
return true;
return true;
}
return false;
}
Expand All @@ -21,11 +21,22 @@ public static function goodEmail(string $email): bool
*
* @since 0.5
*/
public static function goodURL(string $URL): bool
final public static function goodURL(string $URL): bool
{
if(filter_var($URL, FILTER_VALIDATE_URL)) {
return true;
}
return false;
}

/**
* Encription array of values
*
* Use case on 3DES encription for card payments
*/
final public static function encrypt3DES(string $data, array $key): string
{
$encData = openssl_encrypt($data, 'DES-EDE3', $key, OPENSSL_RAW_DATA);
return base64_encode($encData);
}
}
Loading

0 comments on commit 8bcfce6

Please sign in to comment.