This repository has been archived by the owner on May 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from commercetools/56_pending_notification_web…
- Loading branch information
Showing
22 changed files
with
392 additions
and
156 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
...com/commercetools/pspadapter/notification/processor/impl/PaymentSalePendingProcessor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package com.commercetools.pspadapter.notification.processor.impl; | ||
|
||
import com.commercetools.payment.constants.paypalPlus.NotificationEventType; | ||
import com.google.gson.Gson; | ||
import io.sphere.sdk.payments.TransactionState; | ||
import io.sphere.sdk.payments.TransactionType; | ||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.stereotype.Component; | ||
|
||
import javax.annotation.Nonnull; | ||
|
||
/** | ||
* Processes event notification of type PAYMENT.SALE.PENDING | ||
*/ | ||
@Component | ||
public class PaymentSalePendingProcessor extends PaymentSaleNotificationProcessorBase { | ||
|
||
@Autowired | ||
public PaymentSalePendingProcessor(@Nonnull Gson gson) { | ||
super(gson); | ||
} | ||
|
||
@Override | ||
@Nonnull | ||
public NotificationEventType getNotificationEventType() { | ||
return NotificationEventType.PAYMENT_SALE_PENDING; | ||
} | ||
|
||
@Nonnull | ||
@Override | ||
protected TransactionType getExpectedTransactionType() { | ||
return TransactionType.CHARGE; | ||
} | ||
|
||
@Nonnull | ||
@Override | ||
protected TransactionState getExpectedTransactionState() { | ||
return TransactionState.PENDING; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 0 additions & 36 deletions
36
.../commercetools/pspadapter/notification/processor/impl/PaymentSaleReturnProcessorBase.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.