Permalink
Browse files

add a PayPal payment profile

  • Loading branch information...
1 parent 90aac07 commit 73d20ede0b86cb216bd7c40292b3090b88bf13c0 @iampersistent iampersistent committed Mar 16, 2013
@@ -338,7 +338,6 @@ public function setPreferredPaymentProfile(PaymentProfileInterface $paymentProfi
$this->preferredPaymentProfile = $paymentProfile;
foreach ($this->paymentProfiles as $key => $profile) {
if ($profile == $paymentProfile) {
-
return $this;
}
}
@@ -0,0 +1,13 @@
+<?php
+
+namespace Vespolina\Entity\Partner\PaymentProfile;
+
+use Vespolina\Entity\Partner\PaymentProfile;
+
+class PayPal extends PaymentProfile
+{
+ public function getType()
+ {
+ return 'paypal';
+ }
+}

0 comments on commit 73d20ed

Please sign in to comment.