Skip to content

Commit

Permalink
feat: encrypt merchant keys (#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiio committed Nov 4, 2023
1 parent 0d8f43f commit f15aa55
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions app/Models/Organization.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ class Organization extends Model implements HasMedia
'deleted_at' => 'datetime',
'status_updated_at' => 'datetime',
'accepts_volunteers' => 'boolean',
'eu_platesc_merchant_id' => 'encrypted',
'eu_platesc_private_key' => 'encrypted',
];

public array $requiresApproval = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ public function up(): void
$table->boolean('accepts_volunteers')->default(true);
$table->text('why_volunteer')->nullable();
$table->string('status')->default(OrganizationStatus::pending->value);
$table->string('eu_platesc_merchant_id')->nullable();
$table->string('eu_platesc_private_key')->nullable();
$table->text('eu_platesc_merchant_id')->nullable();
$table->text('eu_platesc_private_key')->nullable();
$table->timestamps();
$table->softDeletes();
});
Expand Down

0 comments on commit f15aa55

Please sign in to comment.