Create stripe api endpoint for apple pay donations

This commit is contained in:
Ehren Kret
2021-05-10 11:43:36 -05:00
parent 7bd7d0e84e
commit 17047513c3
7 changed files with 431 additions and 0 deletions

View File

@@ -22,6 +22,7 @@ import org.whispersystems.textsecuregcm.configuration.AwsAttachmentsConfiguratio
import org.whispersystems.textsecuregcm.configuration.CdnConfiguration;
import org.whispersystems.textsecuregcm.configuration.DatabaseConfiguration;
import org.whispersystems.textsecuregcm.configuration.DirectoryConfiguration;
import org.whispersystems.textsecuregcm.configuration.DonationConfiguration;
import org.whispersystems.textsecuregcm.configuration.DynamoDbConfiguration;
import org.whispersystems.textsecuregcm.configuration.GcmConfiguration;
import org.whispersystems.textsecuregcm.configuration.GcpAttachmentsConfiguration;
@@ -250,6 +251,11 @@ public class WhisperServerConfiguration extends Configuration {
@JsonProperty
private TorExitNodeConfiguration tor;
@Valid
@NotNull
@JsonProperty
private DonationConfiguration donation;
private Map<String, String> transparentDataIndex = new HashMap<>();
public RecaptchaConfiguration getRecaptchaConfiguration() {
@@ -429,4 +435,8 @@ public class WhisperServerConfiguration extends Configuration {
public TorExitNodeConfiguration getTorExitNodeConfiguration() {
return tor;
}
public DonationConfiguration getDonationConfiguration() {
return donation;
}
}