BV Commerce Forum
 » 
BV Commerce Support
 » 
General Support
 » 
Workflow for removing credit card after transaction
 
        
            
            
    | 
Rank: Member
 Joined: 3/4/2006(UTC)Posts: 121
 
 | 
            
	      
                I don't know anything about how to create workflows. I'd like to set up something where the credit card number is removed as soon as the charge is authorized (for obvious security reasons). Has anyone set something like this up?
 
 Rick
 | 
    | 
             | 
            
         | 
    |  | 
            
        
            
        
            
            
    | 
Rank: Member
 Joined: 4/4/2004(UTC)Posts: 670
 
 | 
            
	      
                at a glance, if you do this, how would you handle customer returns or if you received a chargeback, how would you handle the documentation for the response?
 Scott Mech
 | 
    | 
             | 
            
         | 
    |  | 
            
        
    
        
            
            
    | 
Rank: Member
 Joined: 3/4/2006(UTC)Posts: 121
 
 | 
            
	      
                My particular site sells online job postings so there are no returns. If the person fails to use their purchased job postings within the specified time they are out of luck.
 Rick
 | 
    | 
             | 
            
         | 
    |  | 
            
        
            
        
            
            
    | 
Rank: Member
 Joined: 4/4/2004(UTC)Posts: 670
 
 | 
            
	      
                Rick,Thanks for the explanation.    Guess you don't have those little problems like foreign work-visa college students that are under investigation by the US DoJ  or those pesky FBI sting operations.    Most criminals are probably not purchasing online job postings.
 
 Scott Mech
 | 
    | 
             | 
            
         | 
    |  | 
            
        
    
        
            
            
    | 
Rank: Member
 Joined: 3/1/2006(UTC)Posts: 1,142
 
 | 
            
	      
                Andy Miller wrote up a good article on creating workflow tasks... http://structured-soluti...e5/Bvc5UpdateOrderStatus  Basically you would want to follow his instructions on how to create a workflow task, but instead implement code that would load up the Order and its associated payments and clear out the credit cart number, then save the payment back to the database. Something similar to this would work. I just wrote this off the top of my head, so please do some testing with it! For Each payment As Orders.OrderPayment In Order.Payments   if payment.PaymentMethodId = WebAppSettings.PaymentIdCreditCard then     if payment.AmountCharged > 0 then       payment.CreditCardNumber = "0000000000000000"       payment.CreditCardExpMonth = "01"       payment.CreditCardExpDay = "01"       if not Orders.OrderPayment.Update(payment) then         EventLog.LogEvent("Order did not remove credit card correctly! Payment Id " & payment.Bvin)       end if     end if   end if End For | 
| Justin EtheredgeSenior Software Engineer
 BVSoftware
 | 
    | 
             | 
            
         | 
    |  | 
            
        
    
                           
    
        Forum Jump
         
    
    You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.