Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add a PayPal payment profile

  • Loading branch information...
commit 73d20ede0b86cb216bd7c40292b3090b88bf13c0 1 parent 90aac07
@iampersistent iampersistent authored
View
1  lib/Vespolina/Entity/Partner/Partner.php
@@ -338,7 +338,6 @@ public function setPreferredPaymentProfile(PaymentProfileInterface $paymentProfi
$this->preferredPaymentProfile = $paymentProfile;
foreach ($this->paymentProfiles as $key => $profile) {
if ($profile == $paymentProfile) {
-
return $this;
}
}
View
13 lib/Vespolina/Entity/Partner/PaymentProfile/PayPal.php
@@ -0,0 +1,13 @@
+<?php
+
+namespace Vespolina\Entity\Partner\PaymentProfile;
+
+use Vespolina\Entity\Partner\PaymentProfile;
+
+class PayPal extends PaymentProfile
+{
+ public function getType()
+ {
+ return 'paypal';
+ }
+}
Please sign in to comment.
Something went wrong with that request. Please try again.