If a callback URL was provided during the DwollaRequest, the transaction details will be POSTed to the URL in a JSON-encoded string. This class represents the POSTed JSON.
Esempio n. 1
0
        public virtual bool VerifyAuthenticity(DwollaCallback receivedCallback)
        {
            this.ValidatorFactory.GetValidator <DwollaServerCheckoutApi>()
            .ValidateAndThrow(this);

            return(DwollaSignatureUtil.VerifySignature(this.AppSecret, receivedCallback.Signature, receivedCallback.CheckoutId, receivedCallback.Amount));
        }
Esempio n. 2
0
        public virtual bool VerifyAuthenticity(DwollaCallback receivedCallback)
        {
            this.ValidatorFactory.GetValidator<DwollaServerCheckoutApi>()
                .ValidateAndThrow( this );

            return DwollaSignatureUtil.VerifySignature( this.AppSecret, receivedCallback.Signature, receivedCallback.CheckoutId, receivedCallback.Amount );
        }