Esempio n. 1
0
 public void BillingAgreement(PaypalBillinAgreement assinante)
 {
     var assinantura = PayPal.Api.Agreement.Create(Paypal(), new Agreement {
         name        = assinante.nome,
         description = assinante.description,
         start_date  = DateTime.UtcNow.AddMinutes(5).ToString("yyyy-MM-ddTHH:mm:ssZ"),
         plan        = new Plan
         {
             id = assinante.plano
         },
         payer = new Payer
         {
             payment_method = "paypal",
             payer_info     = new PayerInfo
             {
                 email = assinante.email
             }
         }
     });
 }
Esempio n. 2
0
        public void salvar(PaypalBillinAgreement assinatura)
        {
            ContextPaypal contextPaypal = new ContextPaypal();

            contextPaypal.Paypal.
        }